• 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: How to set checkbox state in TableView columnheader
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set checkbox state in TableView columnheader


  • Subject: Re: How to set checkbox state in TableView columnheader
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 8 Oct 2009 20:20:03 -0700


Congratulations, it looks like you got the hard parts!

On 2009 Oct 08, at 01:23, Zhang Li wrote:

I tried to use [cell setIntValue:NSOnState] before [cell release] to set the checkbox to on state, but failed. Looks like [NSButtonCell SetIntValue] is not the right way to change checkbox state.

NSButtonCell inherits from NSActionCell and NSCell. (See 2nd line of the NSButtonCell documentation). Click the links. Now, try -[NSCell setState:], which will probably work, and -[NSActionCell setObjectValue:], which might work.


_______________________________________________

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: How to set checkbox state in TableView columnheader
      • From: "Zhang Li" <email@hidden>
References: 
 >How to set checkbox state in TableView columnheader (From: "Zhang Li" <email@hidden>)

  • Prev by Date: Re: Hide an Item on Desktop
  • Next by Date: Re: Alert prompts for BetterAuthorizationSample
  • Previous by thread: How to set checkbox state in TableView columnheader
  • Next by thread: Re: How to set checkbox state in TableView columnheader
  • Index(es):
    • Date
    • Thread