Newbie - Using NSButtonCell in a table
Newbie - Using NSButtonCell in a table
- Subject: Newbie - Using NSButtonCell in a table
- From: Jeff Brown <email@hidden>
- Date: Sun, 20 Mar 2005 22:59:16 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
I've got a table with one column of NSButtonCells. The
table columns are bound to an NSArrayController which
in turn is bound to an NSArray of models in File's
Owner.
The NSButtonCell has a target action in FIle's Owner.
What needs to happen is when I click on a button in a
row of the table, the target method needs to access
one of the fields of the model represented by that
row.
I tried just asking the NSArrayController to return
it's selected object but found that the row gets
selected after the button is pressed and released.
(even though it doesn't look like the is the case).
Any idea how I can do this e.g. is there any way to
determine which row the pressed button is on?
Thanks guys
Jeff
_______________________________________________
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