Last active
January 2, 2016 04:08
-
-
Save paulrehkugler/8248123 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MyModelObject.h */ | |
@interface MyModelObject : NSObject | |
// this data is "publicly" immutable | |
@property (nonatomic, readonly) NSArray *someData; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MyModelObject.m */ | |
@interface MyModelObject() | |
// allow this data to be "privately" mutable | |
@property (nonatomic, readwrite) NSMutableArray *someData; | |
// don't expose this method publicly | |
- (void) process; | |
@end | |
@implementation | |
- (void) process { | |
// do some processing steps here | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment