• 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
Visually disabling some checkboxes in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Visually disabling some checkboxes in a NSTableView


  • Subject: Visually disabling some checkboxes in a NSTableView
  • From: Tito Ciuro <email@hidden>
  • Date: Sat, 21 May 2011 09:19:12 -0700

Hello,

I have a table view which contains a column that displays checkboxes. I would like to disable and gray out some of the checkboxes, so I guess there are two possible ways (perhaps there's another way?):

1) disable the control (i.e. gray out) so that the user cannot toggle it (in one single method)
2) ignore tracking for the affected rows and disable the cell/control (in two or more methods)

I've tried option #2. I've implemented - (BOOL)tableView:shouldTrackCell:forTableColumn:row: and the click gets properly ignored. However, I'd also like to indicate to the user that the checkbox cannot be toggled, and this is where I'm stuck. How would some of these checkboxes be grayed out?

Thanks in advance,

-- Tito
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Visually disabling some checkboxes in a NSTableView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: QuickTime Player - like application
  • Next by Date: Re: Visually disabling some checkboxes in a NSTableView
  • Previous by thread: Re: problem bringing up print dialog for epson printer in 64-bit mode
  • Next by thread: Re: Visually disabling some checkboxes in a NSTableView
  • Index(es):
    • Date
    • Thread