• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData relationship/KVC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: CoreData relationship/KVC question (From: Steve Steinitz <email@hidden>)
 >Re: CoreData relationship/KVC question (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: CoreData relationship/KVC question (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: CoreData relationship/KVC question
  • Next by Date: IKSlideshow and Custom Transitions
  • Previous by thread: Re: CoreData relationship/KVC question
  • Next by thread: Re: CoreData relationship/KVC question
  • Index(es):
    • Date
    • Thread