Skip to content

Instantly share code, notes, and snippets.

@jyaunches
Last active December 14, 2015 20:38
Show Gist options
  • Save jyaunches/5144997 to your computer and use it in GitHub Desktop.
Save jyaunches/5144997 to your computer and use it in GitHub Desktop.
Instance variable with accessors definitions in header file.
@interface SomeObject : NSObject
{
SomeOtherObject *containedObject
}
- (void)setContainedObject(SomeOtherObject *)obj;
- (SomeOtherObject *)containedObject;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment