• 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: Error with proxy objects and to-many relationships with Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with proxy objects and to-many relationships with Core Data


  • Subject: Re: Error with proxy objects and to-many relationships with Core Data
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 26 Feb 2006 19:55:23 -0800


On Feb 26, 2006, at 7:35 PM, Sean Willson wrote:

Does anyone have any ideas on how to diagnose this problem?

This has nothing to do with Core Data.

As the documentation states:

"selection
Returns a proxy object representing the receiver’s selection."


<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSObjectController.html#// apple_ref/occ/instm/NSObjectController/selection>


The method returns a *proxy*, not the actual object. So you can't use it as an "ordinary" object. If you need the actual object, use:

	[[fooBarController selectedObjects] objectAtIndex:0];


In general there aren't that many good large scale core data references out on the web right now and it's quite painful. I am working on a detail application that is quite dependent on Core Data and find the documentation to be quite sparse.

If you find deficits in the documentation, please file enhancement requests. Please also bear in mind that, as in this case, many "issues" with Core Data are not specific to Core Data...

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Error with proxy objects and to-many relationships with Core Data
      • From: "Sean Willson" <email@hidden>
References: 
 >Error with proxy objects and to-many relationships with Core Data (From: "Sean Willson" <email@hidden>)

  • Prev by Date: Re: Menu Item Bindings Problem
  • Next by Date: Re: Error with proxy objects and to-many relationships with Core Data
  • Previous by thread: Error with proxy objects and to-many relationships with Core Data
  • Next by thread: Re: Error with proxy objects and to-many relationships with Core Data
  • Index(es):
    • Date
    • Thread