• 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
Re: tool tips & lost mouse click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tool tips & lost mouse click


  • Subject: Re: tool tips & lost mouse click
  • From: Mark Dawson <email@hidden>
  • Date: Thu, 12 May 2005 10:30:30 -0700

This happens on 10.2 & 10.3 varieties (haven't tested on Tiger yet)…

I worked on some test code to add real time notes using tool tips (similar to the ruler's marker). However, I've run into 2 problems:

(1) When running the code, if I click on my document (which turns on a tool tip for information display), then click on my panel, that first click on the panel is "lost"--doesn't seem to go to the panel. I haven't figured out where its going, but taking out the help code allows it to pass through.
(2) (Maybe related to (1)) I can't seem to find a way to make the tool tip text go away immediately. While I call "remove", the tool tip doesn't disappear until the next screen refresh (which is reasonable); however, I'd like it to go away on mouse up (when I call the "remove"). Is there a way to "goose" just that clip area to redraw?

I added the code to the "Sketch" example program:
in the - (BOOL)createWithEvent: method, I added the help
NSHelpManager *helpManager = [NSHelpManager sharedHelpManager];
while (1) {
theEvent = [[view window] nextEventMatchingMask:(NSLeftMouseDraggedMask | NSLeftMouseUpMask | NSMouseMovedMask)];
point = [view convertPoint:[theEvent locationInWindow] fromView:nil];
pointInScreen = [NSEvent mouseLocation];
...
[helpManager setContextHelp:[self resizeTipText:&flags] forObject:self];
[helpManager showContextHelpForObject:self locationHint:pointInScreen];
...
}

[helpManager removeContextHelpForObject:self];




_______________________________________________
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
 _______________________________________________
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

References: 
 >tool tips & lost mouse click (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Why would a defined selector not be found at runtime?
  • Next by Date: Re: Why would a defined selector not be found at runtime?
  • Previous by thread: tool tips & lost mouse click
  • Next by thread: NSScanner With Multiple Characters
  • Index(es):
    • Date
    • Thread