Re: NSControllerObjectProxy
Re: NSControllerObjectProxy
- Subject: Re: NSControllerObjectProxy
- From: Jiva DeVoe <email@hidden>
- Date: Thu, 19 May 2005 12:23:12 -0700
Thanks for the info, actually using selection.self worked - but I'll
try selectedObjects too, I bet that would do the trick.
Thanks.
On May 19, 2005, at 10:57 AM, m wrote:
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:
40devoesquared.com
This email sent to email@hidden
--
Jiva DeVoe
http://www.devoesquared.com
PowerCard - Intuitive Project Management Software for Mac OS X
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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