Re: Figuring out which values are selected in an NSTableView
Re: Figuring out which values are selected in an NSTableView
- Subject: Re: Figuring out which values are selected in an NSTableView
- From: Denis Stanton <email@hidden>
- Date: Wed, 18 May 2005 17:16:00 +1200
On May 18, 2005, at 4:06 PM, mmalcolm crawford wrote:
Is the paymentController outlet actually connected? If there is no
selection, 'selectedObjects' returns an empty array...
Hi mmalc
Thanks for taking an interest
I think you're an inch away from telling me the answer. In fact I'm
sure you are telling me the answer, but you're assuming a little more
understanding on my part.
I think the problem is that paymentController is not connected or bound
properly. I just don't know exactly what object to select, what
binding to select and what value to enter.
My MyDocumentNib contains icons for File's owner and NSArrayController
My Window contains an NSTableView with columns.
Can you give this me in really simple terms? I don't know the exact
requirement for paymentController outlet to be connected.
Which thing do I select, which binding, and which parameters for that
binding?
My app mostly follows the RaiseMan example In Aaron Hillegass' book .
Unless I've missed something (quite possible, despite many re-checks)
there are only two bindings specified in the example
My NSArrayController has one binding.
Content Array is bound to File's Owner (MyDocument),
Model Key Path: payments
where "payments" is an MSMutableArray
In my NSTableView each column has a binding of the form
Bind to : NSArrayController
Controller Key :arrangedObjects
Model Key Path: paymentDate
Denis
Denis Stanton
Orcon Internet Limited
(09) 480 9299
http://www.orcon.net.nz
_______________________________________________
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