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

Re: Checkboxes in an NSTableView


  • Subject: Re: Checkboxes in an NSTableView
  • From: Moray Taylor <email@hidden>
  • Date: Thu, 26 Feb 2004 23:51:47 +0000

I think you might need to change the value in the datasource, the do a reloadData:.

Cheers

Moray

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.
_______________________________________________
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.


References: 
 >Checkboxes in an NSTableView (From: Brant Sears <email@hidden>)

  • Prev by Date: Re: Extending NSMutableDictionary what am I doing wrong?
  • Next by Date: Re: Checkboxes in an NSTableView
  • Previous by thread: Checkboxes in an NSTableView
  • Next by thread: Re: Checkboxes in an NSTableView
  • Index(es):
    • Date
    • Thread