Skip to content

Instantly share code, notes, and snippets.

@elizaaverywilson
Last active August 29, 2015 14:00
Show Gist options
  • Save elizaaverywilson/8428b63bd9a5697f161b to your computer and use it in GitHub Desktop.
Save elizaaverywilson/8428b63bd9a5697f161b to your computer and use it in GitHub Desktop.
NSObject *object = [[NSObject alloc] init];
NSObject *object2 = object
Does `object2` == `object`?
Does `object2` have the same memory address as `object`?
If I go like:
[object setValue:differentValue], does object2.value change?
What about the other way around?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment