• 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
NSRulerMarker with custom tooltip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: problem with ichat
  • Next by Date: checking if a string is with in a different string
  • Previous by thread: Re: problem with ichat
  • Next by thread: checking if a string is with in a different string
  • Index(es):
    • Date
    • Thread