Re: CoreData relationship/KVC question
Re: CoreData relationship/KVC question
- Subject: Re: CoreData relationship/KVC question
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Fri, 30 Jan 2009 16:42:27 -0500
Thanks a lot!... I've been reading the "Managed Object Accessor
Methods" over and over but apparently the answer was in "Using Managed
Object"!
(To answer my own question, the correct KVC syntax would be)
NSMutableSet *employees = [aDepartment
mutableSetValueForKey:@"employees"];
[employees addObject:newEmployee];
[employees removeObject:firedEmployee];
On 30-Jan-09, at 4:30 PM, mmalc Crawford wrote:
On Jan 30, 2009, at 1:26 PM, Jean-Nicolas Jolivet wrote:
What I wanted to know, more or less, is (following my previous
Employee/Department example) can I add employees to a Department
using KVC
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html
>
mmalc
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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