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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to