• 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
Checkboxes in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checkboxes in an NSTableView


  • Subject: Checkboxes in an NSTableView
  • From: Brant Sears <email@hidden>
  • Date: Thu, 26 Feb 2004 15:31:50 -0800

I have an NSTableView that has a column of checkboxes. I'm attempting to
programatically toggle the value of some of these boxes. I have code that
acquires a reference to the cell by calling:

NSCell* theCell = [myTableColumn dataCellForRow: theRowIndex];

So, now I have an NSCell * which seems to be an NSButtonCell pointer which
is what I would expect. I've attempted to call performClick on it. I've also
tried calling [theCell setIntValue: NSOnState] (or NSOffState) which also
doesn't work.

I've even tried to enable or disable the button cell which apparently I
can't do either.

Any ideas on how I can accomplish the goal of programatically toggling the
checkbox cells?

Brant Sears
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Checkboxes in an NSTableView
      • From: Bill Cheeseman <email@hidden>
    • Re: Checkboxes in an NSTableView
      • From: Laurent Daudelin <email@hidden>
    • Re: Checkboxes in an NSTableView
      • From: j o a r <email@hidden>
    • Re: Checkboxes in an NSTableView
      • From: Moray Taylor <email@hidden>
  • Prev by Date: Re: Sheets
  • Next by Date: RE: Accepting url drags directly from safari
  • Previous by thread: Re: smart file management
  • Next by thread: Re: Checkboxes in an NSTableView
  • Index(es):
    • Date
    • Thread