CBObjectCreationMacros.h is a header file for Objective-C programs. Include it for access to three macros:

  • NSDICT(...). Creates an autoreleased dictionary. Values and keys are specified in the same format as -[NSDictionary dictionaryWithValuesAndKeys:...] but with the trailing nil omitted.
  • NSARRAY(...). Creates an autoreleased array. Values are specified as arguments. A trailing nil is not required.
  • NSBOOL(boolean). Creates an autoreleased NSNumber containing a BOOL.

Getting the source

CBObjectCreationMacros are hosted in MacCode. You can check out the macros from Subversion with:

% svn checkout ' creation macros/' object-creation-macros


CBObjectCreationMacros is released under the 3-clause BSD license.