NSTableView delete button
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