NSObjectController and its subclasses return a proxy object for the selection. I’d like to understand why they chose to design it this way. The documentation doesn’t seem to shed much light on why this is.
NSObjectController and its subclasses return a proxy object for the selection. I’d like to
Share
Apple’s Cocoa Bindings Programming Topics has this to say:
I think you’ll find that your answer lies in that final sentence.
For what it’s worth,
[objectController valueForKeyPath:@"selection.self"]returns the selected object itself.