Re: NSControllerObjectProxy
Re: NSControllerObjectProxy
- Subject: Re: NSControllerObjectProxy
- From: Bob Ippolito <email@hidden>
- Date: Wed, 18 May 2005 22:57:54 -0400
On May 18, 2005, at 9:58 PM, 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.
What I want to be able to do is access the actual methods on my
object. How can I do this? Is there some way to get at the actual
object from an NSControllerObjectProxy?
Have you tried:
id realObject = [foo self];
-bob
_______________________________________________
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