Re: NSArrayController and table view : how to bind selection ?
Re: NSArrayController and table view : how to bind selection ?
- Subject: Re: NSArrayController and table view : how to bind selection ?
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 6 Sep 2005 17:13:16 -0700
On Sep 6, 2005, at 9:39 AM, Eric Morand wrote:
The problem is that NSArrayController doesn't seem to have useful
bindings to get the selected object. I've tried to create an outlet
to my array controller and call "selection" method on it but it
returns a proxy object that is useless to me (I want the managed
object).
As Ryan stated, there isn't a binding for a single selected object.
You can bind 'selectionIndexes' or 'selectedObjects' -- there's an
example of using the latter in the Combatants sample at <http://
homepage.mac.com/mmalc/CocoaExamples/controllers.html>. You can
readily get a single selected object from the selectedObjects array
if you need to do so...
mmalc
_______________________________________________
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