• 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
Re: deleting a tableColumn...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >deleting a tableColumn... (From: Jonas Roel <email@hidden>)

  • Prev by Date: NSMailDelivery- 4 questions
  • Next by Date: Re: deleting a tableColumn...
  • Previous by thread: deleting a tableColumn...
  • Next by thread: Re: deleting a tableColumn...
  • Index(es):
    • Date
    • Thread