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 protected]
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to