• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling a particular NSButtonCell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Disabling a particular NSButtonCell in NSTableView (From: "K. Darcy Otto" <email@hidden>)

  • Prev by Date: Disabling a particular NSButtonCell in NSTableView
  • Next by Date: Re: programmatically adding model objects to NSOultineView/NSTreeController
  • Previous by thread: Disabling a particular NSButtonCell in NSTableView
  • Next by thread: Re: Disabling a particular NSButtonCell in NSTableView
  • Index(es):
    • Date
    • Thread