Mouse moved events and escape key
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.