• 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 delete button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView delete button


  • Subject: NSTableView delete button
  • From: Keith Duncan <email@hidden>
  • Date: Thu, 28 Dec 2006 22:59:16 +0000

I have an NSTableView bound to an array of NSDictionary objects. I want to add a table column containing a delete button. That will remove the object in the row of the button.

I've read http://www.cocoadev.com/index.pl?NSButtonCellInBoundColumn but it didn't really help me. I'm catching one of the table's delegate methods and this is what I have so far. Any help would be appreciated.

- (void) tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(int)row {
if ([[tableColumn identifier] isEqualToString:@"deleteButton"]) {
id dayOff = [[daysOffController arrangedObjects] objectAtIndex:row];

[cell setHighlightsBy:NSContentsCellMask];
}
}
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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 delete button
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: LineForm's Filters Table
  • Next by Date: Re: NSTableView delete button
  • Previous by thread: Re: exclude from Window menu but show in Dock menu
  • Next by thread: Re: NSTableView delete button
  • Index(es):
    • Date
    • Thread