Skip to content

Instantly share code, notes, and snippets.

@cruffenach
Created August 28, 2011 01:20
Show Gist options
  • Save cruffenach/1176105 to your computer and use it in GitHub Desktop.
Save cruffenach/1176105 to your computer and use it in GitHub Desktop.
User Managed Object Example
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <MaaSiveCoreData/MaaSEntity.h>
@class Message;
@interface User : NSManagedObject {
@private
}
@property (nonatomic, retain) NSString * email;
@property (nonatomic, retain) NSString * displayName;
@property (nonatomic, retain) NSSet* chats;
@property (nonatomic, retain) NSSet* messages;
- (void)addChatsObject:(NSManagedObject *)value;
- (void)removeChatsObject:(NSManagedObject *)value;
- (void)addChats:(NSSet *)value;
- (void)removeChats:(NSSet *)value;
- (void)addMessagesObject:(Message *)value;
- (void)removeMessagesObject:(Message *)value;
- (void)addMessages:(NSSet *)value;
- (void)removeMessages:(NSSet *)value;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment