• 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
Mouse moved events and escape key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mouse moved events and escape key


  • Subject: Mouse moved events and escape key
  • From: "Matteo Rossi" <email@hidden>
  • Date: Fri, 15 Mar 2002 12:32:35 +0100

I've run into two problems I can't solve.
1) I have an NSOpenGLView which accepts mouseMoved events to update live
mouse coordinates in a textfield. When I select a menu item from the main
menu bar or from a contextual menu, my view loses "focus". I tried the
following bit of code:
[[myView window] makeKeyAndOrderFront:self];
[[myView window] makeFirstResponder:view];
[[myView openGLContext] makeCurrentContext];
glFlush();
but, even if the view accepts key down events, it still doesn't receive
mouse moved events. I even tried to send a fake mouseDown event to the view
but it doesn't work.
Any tips ?
2) I have a floating window with edit fields and popup buttons. If I press
escape in an editfield, the window correctly closes but asks me if I want to
save the document associated with my main window. I can't figure out why.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: works fine in GDB but that's it
  • Next by Date: Re: Special behaviour for a Save/Open Panel
  • Previous by thread: works fine in GDB but that's it
  • Next by thread: Subclass NSCell
  • Index(es):
    • Date
    • Thread