Skip to content

Instantly share code, notes, and snippets.

@MattFoley
Created March 22, 2013 16:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MattFoley/5222512 to your computer and use it in GitHub Desktop.
Save MattFoley/5222512 to your computer and use it in GitHub Desktop.
Literal Syntax Magic: Not only can literal syntax do assignment, creation, and re-assignment; it can also do addObject:
NSMutableArray *objects = [@[] mutableCopy];
NSObject *someObject = [NSObject new];
objects[objects.count] = object;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment