NSRulerMarker with custom tooltip
NSRulerMarker with custom tooltip
- Subject: NSRulerMarker with custom tooltip
- From: Lorenzo <email@hidden>
- Date: Wed, 13 Apr 2005 14:35:06 +0200
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@hidden
_______________________________________________
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