• 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
NSTableView updating checkboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView updating checkboxes


  • Subject: NSTableView updating checkboxes
  • From: Jo Phils <email@hidden>
  • Date: Thu, 19 Mar 2009 10:43:02 -0700 (PDT)

Hello,

I am still a Cocoa beginner and looking for some help.  Based on Using a Table Data Source in the Table View Programming Guide I have initiated my Table View with 2 columns...one for filenames and one for checkboxes (NSButtonCell).  Everything is fine except this method:

- (void)tableView:(NSTableView *)aTableView
    setObjectValue:anObject
    forTableColumn:(NSTableColumn *)aTableColumn
    row:(int)rowIndex

I can't seem to get the right syntax to tell my Table View to toggle the state.  I am able to initiate my Table View with the checkboxes in the ON state (other method) but this method is where I'm stuck.  My source is a NSArray *filenames and my table column is "column2."  If someone could help show me how to code this I would appreciate it very much not just to get me passed this point but also so I can learn what I'm doing wrong. :-)

Thank you very much,

Rick



_______________________________________________

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: NSTableView updating checkboxes
      • From: Graham Cox <email@hidden>
  • Prev by Date: NSLog broken after call of NSTask and setStandardError
  • Next by Date: NSTimer & Runloop questions
  • Previous by thread: NSLog broken after call of NSTask and setStandardError
  • Next by thread: Re: NSTableView updating checkboxes
  • Index(es):
    • Date
    • Thread