[SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-28 Thread Stuart Malin
Sorry for the post how did I miss -selectedObjects Begin forwarded message: From: Stuart Malin [EMAIL PROTECTED] Date: June 28, 2008 10:43:36 AM PDT To: Cocoa Developer List cocoa-dev@lists.apple.com Subject: noob question regarding proxy object returned by -selection method of

Re: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-28 Thread Owen Yamauchi
How about [[controller selection] valueForKey:@self]? NSObject has a -self method which just returns the receiver, and since the proxy object must respond to the KVC query as if it were the underlying object, you get the underlying object back. Owen ___