NSButtonCell Relating To NSTableView Object
NSButtonCell Relating To NSTableView Object
- Subject: NSButtonCell Relating To NSTableView Object
- From: Oliver Cameron <email@hidden>
- Date: Fri, 7 Jan 2005 21:40:06 +0000
Hi guys,
I have a NSTableView, and each row is an object. By object I mean a
class (called Option) that holds information about a certain row, like
a few strings and a few BOOL's.
In my NSTableView, I have 2 columns, one column is set by Interface
Builder as a NSButtonCell, and the other is just a normal cell.
As I was saying before, my NSTableView uses an object for each row that
holds properties, one property is "isEnabled", which is a BOOL, and
this is set by the method "setEnabled:".
Now, I am having trouble understanding how I would go about relating
the NSButtonCell to the Object, so that when the button was enabled,
the Object in the same row's method, "setEnabled:", would be set to
YES, and when the button was disabled, the method would be set to NO.
Any help at all is appreciated :-)
Thanks,
Oliver
_______________________________________________
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