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

NSTextView tooltips


  • Subject: NSTextView tooltips
  • From: Mark Alldritt <email@hidden>
  • Date: Tue, 15 Feb 2005 17:20:43 -0800

Hi All,

I am developing a debugger, and I want to have a tooltip appear to display
the result of evaluating an expression under the mouse.  I've been
experimenting with NSView's addToolTipRect & removeToolTip calls to try and
setup a tooltip rect around the expression under the mouse.  The problem is
that my view:stringForToolTip:point:userData: callback is never being
called.

I found the NSToolTipAttributeName text attribute, but that's too static.  I
need to generate the tool tip range dynamically based on where the mouse is
hovering.

How should I approach this problem?

Cheers
-Mark

------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 3.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  Affrus 1.0 - Perl Debugging

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView tooltips
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Custom NSView subclass + binding in IB
  • Next by Date: Re: TCP/IP
  • Previous by thread: Observing NSArrayController's selection doesn't appear to be consistent
  • Next by thread: Re: NSTextView tooltips
  • Index(es):
    • Date
    • Thread