Re: NSControllerObjectProxy
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