RE: Core Data Entities in NSArray
RE: Core Data Entities in NSArray
- Subject: RE: Core Data Entities in NSArray
- From: Soares <email@hidden>
- Date: Mon, 7 May 2007 12:55:46 +0100
Apologies for this post. At its simplest all one need do is:
- (IBAction) addNode:(id)sender
{
NSManagedObjectContext *context = [self managedObjectContext];
Node *node = [NSEntityDescription insertNewObjectForEntityForName:
@"Node" inManagedObjectContext: context];
}
And just wire it up in IB.
Just wasn't thinking clearly.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden