Skip to content

Instantly share code, notes, and snippets.

@probablycorey
Created June 3, 2009 18:13
Show Gist options
  • Select an option

  • Save probablycorey/123148 to your computer and use it in GitHub Desktop.

Select an option

Save probablycorey/123148 to your computer and use it in GitHub Desktop.
id a = [NSString alloc];
id b = [a initWithFormat:@"Hello];
// a != b
// [NSString alloc] just creates a placeholder object... the init classes actually do the allocating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment