Created
May 25, 2011 16:16
-
-
Save fearofcode/991276 to your computer and use it in GitHub Desktop.
object creation macros from cbarrett
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define NSDICT(...) [NSDictionary dictionaryWithObjectsAndKeys: __VA_ARGS__, nil] | |
#define NSARRAY(...) [NSArray arrayWithObjects: __VA_ARGS__, nil] | |
#define NSBOOL(_X_) ((_X_) ? (id)kCFBooleanTrue : (id)kCFBooleanFalse) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
original source: http://cbarrett.tumblr.com/post/53371495/some-helpful-macros-for-object-creation