• 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: 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.

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