I just noticed that when you hold down the command key over an inactive window and click and drag the mouse, the window will receive mouse events. You can move the window, use the tool bar, select text, interact with views, etc. Almost what ever you can do when the window is active with a mouse, you can also do when the window is inactive using the command key and the mouse. (Mac OS 10.5.8) If you have never done this you should try it. It works in Mail, Safari, Pages, etc.

The only reference in the documentation to this functionality that I can find is in the Apple Human Interface Guidelines which says "Pressing the Command key while dragging an inactive window moves the window but does not make it active." It mentions nothing about the entire window and all of its contents also receiving mouse events.

I have a custom view where this behavior is undesirable. How can I disable this view from receiving mouse events when the window is inactive and the user uses the command key with the mouse?

--Richard

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to