Re: Making NSTableView column headers editable
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