Skip to content

Instantly share code, notes, and snippets.

@joubertnel
Created October 5, 2011 11:59
Show Gist options
  • Save joubertnel/1264285 to your computer and use it in GitHub Desktop.
Save joubertnel/1264285 to your computer and use it in GitHub Desktop.
macros for faster NSArray and NSDictionary instancing
#define ARRAY(...) [NSArray arrayWithObjects:__VA_ARGS__, nil]
#define DICT(...) [NSDictionary dictionaryWithObjectsAndKeys:__VA_ARGS__, nil]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment