• 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: Tool-tips on NSTabViewItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tool-tips on NSTabViewItem


  • Subject: Re: Tool-tips on NSTabViewItem
  • From: Andrew Farmer <email@hidden>
  • Date: Sun, 28 Jun 2009 22:28:53 -0700

On 26 Jun 2009, at 08:01, PKameo wrote:
How do you add a tool-tip to a NSTabViewItem? I tried the following, but
that didn't work right.
[[tabViewItem view] setToolTip:toolTip];
//Where tabViewItem is of type NSTabViewItem* and toolTip is of type
NSString*

[tabViewItem view] returns the content view of the tab (i.e, what gets displayed when the tab is selected), not a view representing the tab itself.


Tab view items don't support attributed labels, so I suspect there isn't any easy way of accomplishing this task. If you really need it, you can probably subclass NSTabView and do something awful with mouse- moved events and/or tracking rects. However, given as how there aren't any other applications out there where NSTabViews have tooltips, I wouldn't sweat it.
_______________________________________________


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: 
 >Tool-tips on NSTabViewItem (From: PKameo <email@hidden>)

  • Prev by Date: Re: NSCell subclassing nightmares
  • Next by Date: Re: Objective C Compiler Settings
  • Previous by thread: Tool-tips on NSTabViewItem
  • Next by thread: Re: NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error
  • Index(es):
    • Date
    • Thread