Re: deleting a tableColumn...
Re: deleting a tableColumn...
- Subject: Re: deleting a tableColumn...
- From: Brian Webster <email@hidden>
- Date: Sat, 26 Apr 2003 21:57:12 -0500
The highlighted table column and the selected table column are two
different things. If you have column selection enabled, you want to
use the selectedColumn method (or selectedColumnEnumerator if multiple
columns can be selected) to get the column(s) the user selected. The
highlightedTableColumn method will only return a column that's been
highlighted using setHighlightedTableColumn:.
On Saturday, April 26, 2003, at 09:13 PM,
email@hidden wrote:
The issue is that the adding of the column works fine. But for some
reason the deletion of a selected column doesn't seem to work... Can
someone please review this code snippet to point out what I'm doing
wrong. I'll appreciate any advice you can give me... Thanks - JR
I'm thinking about doing the following - (more or less):
-(IBAction)removeColumn:(id)sender
{
NSTableColumn *remove = [myTableView highlightedTableColumn];
[myTableView removeTableColumn:remove];
[myTableView reloadData];
}
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.