NSArrayController and table view : how to bind selection ?
NSArrayController and table view : how to bind selection ?
- Subject: NSArrayController and table view : how to bind selection ?
- From: Eric Morand <email@hidden>
- Date: Tue, 6 Sep 2005 16:01:14 +0200
Hi List !
I've been searching around the web for an answer to this question and
I didn't find anything so I assume I'm the only person having problem
understanding it, so please excuse me if this question looks silly :
how can I bind the current selected object of a table view ?
Let me explain : I have a table view that allow the user to select a
Book by its name. I want the selected book to be automatically bound
to a variable named selectedBook. I just can't find how to achieve this.
This is very easy to achieve with a pop up button, but I can't find a
way to achieve this with a table view. Since both can be bound to the
content of an array controller, I suppose the problem comes from the
table view and not from the array controller.
Of course, I could use the selectionDidChange delegate method and it
will be perfect but before this, I'd like to know if there is a way
to do this using only bindings.
Thanks,
Eric.
_______________________________________________
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