• 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: Making NSTableView column headers editable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making NSTableView column headers editable


  • Subject: Re: Making NSTableView column headers editable
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 29 Sep 2008 08:48:27 -0700


On Sep 28, 2008, at 2:00 AM, Andrew BusH wrote:

Hi all,

What is the best approach to do this? I would like the user to be able to double click on the header cell of a NSTableView and have a field appear in place that would let them change the heading.

Ive tried just setting [[NSTableColumn headercell setEditable:YES] when I create the column, but that (unsurprisingly) isn't working.

This would involve subclassing of the header cell to override mouse tracking and editing. It wouldn't be impossible to do, but the UI would be strange. You may want to consider another way of allowing the users to change the names.


corbin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >Making NSTableView column headers editable (From: Andrew BusH <email@hidden>)

  • Prev by Date: Re: problems in runModal in NSOpenPanel used with defaults
  • Next by Date: Re: IBAction deselects currently selected Core Data record?
  • Previous by thread: Making NSTableView column headers editable
  • Next by thread: Restoring a .nib's Edit menu
  • Index(es):
    • Date
    • Thread