NSTableHeaderView, how to clear title before resetting new title
NSTableHeaderView, how to clear title before resetting new title
- Subject: NSTableHeaderView, how to clear title before resetting new title
- From: Shane <email@hidden>
- Date: Thu, 30 Dec 2010 22:32:42 -0600
I have an mouseDown:(NSEvent *) where a popup menu button on a column
header appears in an NSTableView. My problem is that I can't seem to
get the title to clear before it's set w/ the new title. So what I end
up with is new title on top of old title. Here's the code I'm using to
set the new title in my NSTableHeaderView.
NSTableColumn *column = [[[self tableView] tableColumns]
objectAtIndex:index];
[[column headerCell] trackMouse:event
inRect:[self headerRectOfColumn:index]
ofView:self untilMouseUp:NO];
[[column headerCell] setTitle:[[[column headerCell] selectedItem] title]];
Anyone have ideas?
_______________________________________________
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