• 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: Kyle Sluder <email@hidden>
  • Date: Wed, 25 Feb 2009 15:05:51 -0500

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

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

  • Prev by Date: [Q] SQLite corruption issue[?] and how to avoid[?]
  • Next by Date: Re: NSTableView Cell edit values.
  • Previous by thread: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Next by thread: Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Index(es):
    • Date
    • Thread