• 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: NSTableView tooltips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView tooltips


  • Subject: Re: NSTableView tooltips
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 21 Feb 2008 11:57:49 -0800


On Feb 20, 2008, at 16:19, Graham wrote:

Not sure if this is the only way, but you can implement the delegate method:

- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell: (NSCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(int)row mouseLocation:(NSPoint)mouseLocation


I decided not to go this route, since it would result in a different tooltip for every cell. But your suggestion sent me to the documentation and I found out why I didn't get the results I expected.


It turns out that IB is Working As Intended, in that the tooltip you set for a column is really a tooltip for just the column header. But the IB interface is incredibly confusing in its representation of the geometry that the tooltip applies to (and for the table header subview too).

In the end, I just subclassed NSTableColumn to make it do what IB *looked* like it was doing.

Now I'm off to radar the multiple bugs in the tooltip text field in IB's inspector ...

_______________________________________________

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: 
 >NSTableView tooltips (From: Quincey Morris <email@hidden>)
 >Re: NSTableView tooltips (From: Graham <email@hidden>)

  • Prev by Date: quirky default button coloring
  • Next by Date: Re: Core Data problems
  • Previous by thread: Re: NSTableView tooltips
  • Next by thread: Associating interface state with NIB content
  • Index(es):
    • Date
    • Thread