Skip to content

Instantly share code, notes, and snippets.

@jorbsd
Created November 25, 2009 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorbsd/242969 to your computer and use it in GitHub Desktop.
Save jorbsd/242969 to your computer and use it in GitHub Desktop.
// gcc -fobjc-gc-only -o test1 test1.m -framework Cocoa && ./test1
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[]) {
NSArray *arrayOne = [NSArray arrayWithObjects:@"one", @"two", @"three", nil];
NSArray *arrayTwo = [NSArray arrayWithObjects:arrayOne, nil];
NSPredicate *myPred = [NSPredicate predicateWithFormat:@"NOT (SELF in %@)" argumentArray: arrayTwo];
NSLog(@"test1 finished running");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment