• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSControllerObjectProxy


  • Subject: Re: NSControllerObjectProxy
  • From: m <email@hidden>
  • Date: Thu, 19 May 2005 10:57:05 -0700


On May 19, 2005, at 5:47 AM, Tim Lucas wrote:

On 19/05/2005, at 11:58 AM, Jiva DeVoe wrote:

When I bind a custom view to an NSArrayController's "selection" property, the thing I get in my "observeValueForKeyPath:ofObject:change:context" method winds up being an NSControllerObjectProxy and *not* an instance of the objects that are actually in my array - therefore, I have to access all my properties on that object using valueForKey.


Have you tried binding to "selectedObjects" instead?

I think Tim hot hit it on the head. selection "Returns a proxy object representing the receiver’s selection." (from the docs).


Note that this is not "the actual objects that are selected". For that you bind to "selectedObjects".

_murat _______________________________________________
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: NSControllerObjectProxy
      • From: Jiva DeVoe <email@hidden>
References: 
 >NSControllerObjectProxy (From: Jiva DeVoe <email@hidden>)
 >Re: NSControllerObjectProxy (From: Tim Lucas <email@hidden>)

  • Prev by Date: Re: CoreData & Relationship binding not sending updates?
  • Next by Date: [Moderator] Cocoa and list resources
  • Previous by thread: Re: NSControllerObjectProxy
  • Next by thread: Re: NSControllerObjectProxy
  • Index(es):
    • Date
    • Thread