Re: deleting a tableColumn...
Re: deleting a tableColumn...
- Subject: Re: deleting a tableColumn...
- From: Greg Hulands <email@hidden>
- Date: Sun, 27 Apr 2003 12:48:43 +1000
I would say you have a retain release mismatch. When you create the
column with col = [[NSTableColumn alloc]
initWithIdentifier:@"whatever"]; and then add it to the table view with
[tableView addTableColumn: col]; you then need to release it with [col
release]; this is because the table view retains the column.
HTH,
Greg
On Sunday, April 27, 2003, at 11:57 AM, Jonas Roel wrote:
Hi,
I am trying to allow the user to modify a table view by adding a new
column, or removing a selected column.
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];
}
_______________________________________________
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.