• 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: NSTextField : Tooltip show Whole String, only when Truncated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField : Tooltip show Whole String, only when Truncated


  • Subject: Re: NSTextField : Tooltip show Whole String, only when Truncated
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 16 Sep 2011 12:57:28 -0700

hi Jerry,

Your right; NSTextField does not have that feature (it is called "expansion tool tips" in NSTableView). Please log a bug requesting it in AppKit.

corbin

On Sep 16, 2011, at 10:47 AM, Jerry Krinock wrote:

> I'd like an NSTextField to display a tooltip showing its entire text whenever it's truncating.  I think that NSTableView has this behavior built in, if you simply don't set a tooltip on a cell.  But NSTextField does not.
>
> It *sure would be nice* if NSTextField had an observable 'isTruncating" property which I could bind to!
>
> Am I not seeing some feature which will give the desired behavior?
>
> If not, the only solution I can think of is to do the whole damned text measurement thing, taking as parameters the font, the typesetter behavior for the given Mac OS X version, and see if the calculated width exceeds the field width.  This kind of thing usually requires, in addition, a fudge factor and/or term, adjusted experimentally to match the actual truncation threshold.  Ugh.
>
> Rather than the above, I think I'll just leave the tooltip "always on" and hope that users don't get too annoyed.  Any better ideas?
>
> Thanks,
>
> Jerry Krinock
>
> _______________________________________________
>
> 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

_______________________________________________

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: 
 >NSTextField : Tooltip show Whole String, only when Truncated (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: question about identifying old apps
  • Next by Date: Re: Proper handling of NSSavePanel and 'Do you want to replace it?' dialog
  • Previous by thread: NSTextField : Tooltip show Whole String, only when Truncated
  • Next by thread: Proper handling of NSSavePanel and 'Do you want to replace it?' dialog
  • Index(es):
    • Date
    • Thread