Skip to content

Instantly share code, notes, and snippets.

@fearofcode
Created May 25, 2011 16:16
Show Gist options
  • Save fearofcode/991276 to your computer and use it in GitHub Desktop.
Save fearofcode/991276 to your computer and use it in GitHub Desktop.
object creation macros from cbarrett
#define NSDICT(...) [NSDictionary dictionaryWithObjectsAndKeys: __VA_ARGS__, nil]
#define NSARRAY(...) [NSArray arrayWithObjects: __VA_ARGS__, nil]
#define NSBOOL(_X_) ((_X_) ? (id)kCFBooleanTrue : (id)kCFBooleanFalse)
@fearofcode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment