Skip navigation.
 
mlNSRulerMarker with custom tooltip
FROM : Lorenzo
DATE : Wed Apr 13 14:35:06 2005

Hi,
when I click on my NSRulerMarker marker, I see a small tooltip showing the
marker location. I would like to customize this message and add more text
informations in that tooltip or create and pop-up my own tooltip view.

I have been trying to subclass NSRulerMarker and override mouseDown, but it
has never been invoked. And overriding doesn't help.

- (BOOL)trackMouse:(NSEvent *)theEvent adding:(BOOL)flag
{
    NSLog(@"MYOWNRulerMarker trackMouse");

    // return [super trackMouse:theEvent adding:flag];

    return YES;
}

If I call [super trackMouse....
the default tooltip appears again.
If I don't call [super trackMouse...
I don't see the default tooltip but
the marker cannot be moved and it is not clickable longer.

How can I show my own tooltip with my custom text information?

Best Regards
--
Lorenzo
email: <email_removed>

Related mailsAuthorDate
No related mails found.