• 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
NSTableHeaderView, how to clear title before resetting new title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Calculate next occurrence of a NSDate
  • Next by Date: Re: Calculate next occurrence of a NSDate
  • Previous by thread: Re: Calculate next occurrence of a NSDate
  • Next by thread: UITableViewCell showsReorderControl does nothing
  • Index(es):
    • Date
    • Thread