• 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: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >-[_NSControllerObjectProxy entity]: unrecognized selector sent to instance (From: Daniel Child <email@hidden>)
 >Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re NSTableView Cell edit values.
  • Next by Date: NSTableView && Custom Background ...
  • Previous by thread: Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Next by thread: Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Index(es):
    • Date
    • Thread