I have an application where a border window is displayed using an order out and order frot. When it appears, I want to make it a key window when the mouse moves on it. So far I have done this:
- I have set myself my first responder in Freemanab.
- In the window constructor, I set the mouse to accept events in yes. Li>
- In the mouse mapped method, I use makeKeyAndOrderToFront.
My problem is, that it does only for the first time when I move the mouse over the window. After that, it does not get any mouseware event. I have tried to check the resonator first but as far as I can tell that there is no change in window.
Any thoughts that I can do to get this job
Need to add if you want to get the mouseMoved events (I guess what this means because there is no such thing in cocoa mouseover as an event ).
I wrote a small app called Shroud which does something similar - it hides a border window that covers the menu bar when you mouse over it. It is quite easy, it can be useful as an example.
Comments
Post a Comment