Re: description and proxy objects
Re: description and proxy objects
- Subject: Re: description and proxy objects
- From: Mike Abdullah <email@hidden>
- Date: Fri, 27 Jun 2008 11:26:52 +0100
On 27 Jun 2008, at 00:36, Torsten Curdt wrote:
I am getting the selected object from a controller (that is using
bindings)
NSDictionary *accountSettings = [accountsController selection];
The returned object is a proxy object. But why isn't the
[accountSettings description] passed on?
Instead of the print out of the contents of the dictionary I am now
getting the description of the proxy object.
The selection proxy only acts in a proxy-like manner for KVC/KVO
messages; not any general message you might care to send. Alternatives
would be:
[[[accountsController selectedObjects] objectAtIndex:0] description];
[[accountsController selection] valueForKey:@"description"];
_______________________________________________
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