• 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: Problem setting to-one relationship on NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem setting to-one relationship on NSManagedObject


  • Subject: Re: Problem setting to-one relationship on NSManagedObject
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 6 Dec 2009 22:03:30 -0800

On Fri, Dec 4, 2009 at 3:37 PM, Jim Majure <email@hidden> wrote:
>        NSManagedObject *project = [selectProjectController selection];
>        [newTimeEntry setValue:project forKey:@"project"];

As per the documentation, -selection returns a KVC-compliant proxy
object.  You can't turn around and hand that off to Core Data as if it
were a full-fledged instance.  Use -selectedObjects instead.

--Kyle Sluder
_______________________________________________

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: 
 >Problem setting to-one relationship on NSManagedObject (From: Jim Majure <email@hidden>)

  • Prev by Date: Re: Services Menu Heading
  • Next by Date: Re: Services Menu Heading
  • Previous by thread: Problem setting to-one relationship on NSManagedObject
  • Next by thread: NSTableView reloadData works just on init.
  • Index(es):
    • Date
    • Thread