Re: Window Loses Mouse Moved Events After Selecting From Menu
Re: Window Loses Mouse Moved Events After Selecting From Menu
- Subject: Re: Window Loses Mouse Moved Events After Selecting From Menu
- From: Kristin Webster <email@hidden>
- Date: Tue, 7 Oct 2003 13:36:57 -0700
Hi Henry,
Are you running Jaguar? This should work correctly on Panther, but let
me know if it does not. We did fix a problem with losing mouseMoved
events after using the menu, but there could be additional problems
associated with your background window receiving mouseMoved events if
it is not the key window. (And if you want a borderless window to be
able to become key you need to override -canBecomeKeyWindow - you
didn't specifically mention if you were already doing that).
If you need a workaround for Jaguar, you might try calling
setAcceptsMouseMovedEvents:NO, followed by
setAcceptsMosueMovedEvents:YES when the menu is dismissed, but that can
be potentially tricky to figure out.
Thanks,
Kristin
On Oct 7, 2003, at 12:31 PM, Henry McGilton wrote:
Hello All,
I have an invisible background window/view combination that
tracks the mouse all over the screen and sends mouse coordinates
to two other windows in the application. Everything has been working
fine up to now.
However, when I select some action from my application's menu,
the background window/view no longer sees the mouseMoved events.
In the action method that is called from the menu, I have tried
making the background window the key window, and specifically
have told the background window to make its content view the
first responder. But somehow, the mouseMoved events are getting
lost. I have spent too much time just flailing on this, without
a clear understanding of what is happening.
Any ideas would be much appreciated.
Best Wishes,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.
_______________________________________________
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.