Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
- Subject: Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
- From: Daniel Child <email@hidden>
- Date: Wed, 25 Feb 2009 17:49:50 -0500
Regarding the first issue (proxy object), will read the docs on
NSProxy and all that that leads to.
Regarding the second issue (copyWithZone), I had bound the content of
an array controller to a relationship based on the selection in
another controller, but bindings for the value portion of the
corresponding view was missing the model key. A million thanks for
pointing this out.
On Feb 25, 2009, at 3:05 PM, Kyle Sluder wrote:
On Wed, Feb 25, 2009 at 2:43 PM, Daniel Child <email@hidden>
wrote:
The object I'm adding was obtained by using
NSManagedObject *theWord = [wordList selection]
This yields a proxy object instead of an MO. (Does anyone know why?)
Read the documentation for -[NSObjectController selection]. It's
right there in black and white: "A proxy object representing the
receiver’s selection. This object is fully key-value coding compliant,
but note that it is a proxy and so does not provide the full range of
functionality that might be available in the source object."
-[NSManagedObject copyWithZone:]: unrecognized selector sent to
instance
0x1adf50
Typically this happens when you've bound a view to the selectedObjects
of a controller and not provided a keypath. Often times views copy
their object values, but NSManagedObjectContext does not support
NSCopying. Make sure that all your bindings are to keypaths, not just
to the objects themselves.
--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