Footnote Incomplete Persons
From EOFWiki
Jump to navigationJump to search
In a non-EOF system you might be tempted to add a state method to your fetched objects, so that the application programmer knows if an object is incomplete.
@interface Person : NSObject { BOOL relativesWereFetchedFromDatabase; NSMutableArray *relatives_; } - (BOOL) relativesWereFetchedFromDatabase; - (NSArray *) relatives; - (void) addToRelatives:(Person *) other; - (void) removeFromRelatives:(Person *) other;