Re: Disabling a particular NSButtonCell in NSTableView
Re: Disabling a particular NSButtonCell in NSTableView
- Subject: Re: Disabling a particular NSButtonCell in NSTableView
- From: "I. Savant" <email@hidden>
- Date: Tue, 12 Jun 2007 12:35:11 -0400
On 6/12/07, K. Darcy Otto <email@hidden> wrote:
I've used Interface Builder to set up an NSTableView, and in one
column I have a column of NSButtonCell buttons. I want to disable
the button at a certain row, while leaving the rest of the buttons
enabled. My questions are two:
(i) how do I refer to a particular button at some arbitrary row?
(i) what message do I send the button so just that button becomes
disabled?
... through delegation of course:
-tableView:willDisplayCell:forTableColumn:row:
Just disable the cell when the table is about to display it ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden