Tooltips in NSTextView
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