• 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: Check box cell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check box cell in NSTableView


  • Subject: Re: Check box cell in NSTableView
  • From: stephane <email@hidden>
  • Date: Tue, 11 Mar 2008 16:12:34 +0100


On Mar 11, 2008, at 3:58 PM, Ivan C Myrvold wrote:

It doesn't matter if I do the

[myCheckBox setState:NSMixedState];

the result is the same, the checkbox is shown as checked.

If I however use the same code (or even click all the three states) in an ordinary check box (not cell), everything works as I expect it to do.

This makes me suspect this to be a bug.

IIRC, I had to state in the code that mixed state. was allowed for a NSButtonCell inside a NSTableView. The Data Cell was created dynamically (not through IB) so by default it was set to NO.


It could be worth checking if it works better after you've called:

[myCell  setAllowsMixedState:YES];

in the awakeFromNib.


_______________________________________________

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


References: 
 >Check box cell in NSTableView (From: Ivan C Myrvold <email@hidden>)
 >Re: Check box cell in NSTableView (From: Stephane Sudre <email@hidden>)
 >Re: Check box cell in NSTableView (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Re: Cocoa way to get list of user accounts?
  • Next by Date: Re: Check box cell in NSTableView
  • Previous by thread: Re: Check box cell in NSTableView
  • Next by thread: Re: Check box cell in NSTableView
  • Index(es):
    • Date
    • Thread