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

Tooltips in NSTextView


  • Subject: Tooltips in NSTextView
  • From: Mark Alldritt <email@hidden>
  • Date: Fri, 16 Sep 2005 09:33:55 -0700

Hi All,

I'm trying to implement dynamic tooltips within a text view.  When the user
hovers over a range of text, I parse it to determine if I can present a
tooltip.  Because of the parsing overhead and the potentially huge number of
tooltip rects, I cannot do this in resetCursorRects practically.

So, I'm trying to do it in the mouseMoved: handler.  The problem here is
that the tooltip does not appear because the mouse is already within the
tooltip rect that I'm setting up with addToolTipRect:owner:userData:.

Does anyone know of a way to Cocoa's tooltip logic to react as if the mouse
has moved into my tooltip rect?

Cheers
-Mark

------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 3.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  FaceSpan 4.2 - AppleScript RAD
                                   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

  • Prev by Date: Re: Strange problem with the help menu and minimizing the app
  • Next by Date: Re: Strange problem with the help menu and minimizing the app
  • Previous by thread: Re: Adding menus to main menu
  • Next by thread: Printing sample code?
  • Index(es):
    • Date
    • Thread