Skip to content

Instantly share code, notes, and snippets.

@jyaunches
Last active December 14, 2015 20:39
Show Gist options
  • Save jyaunches/5145105 to your computer and use it in GitHub Desktop.
Save jyaunches/5145105 to your computer and use it in GitHub Desktop.
Using accessors defined with property declaration.
SomeObject *myObj = [[SomeObject alloc] init];
[myObj setContainedObject:[[SomeOtherObject alloc] init]];
SomeOtherObject *otherObject = myObj.containedObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment