Re: Inactive Window Receives Mouse Events
Re: Inactive Window Receives Mouse Events
- Subject: Re: Inactive Window Receives Mouse Events
- From: Kyle Sluder <email@hidden>
- Date: Sat, 11 Sep 2010 13:22:10 -0700
On Sep 11, 2010, at 11:40 AM, Richard Somers <email@hidden> wrote:
> I think you meant to say 'Command key' not 'Control key'.
Yes, I did.
> Actually I have a subclass of NSView, it is not a control at all. It is the primary view in a document window and the user will be using the command key and mouse a lot. But it is not desirable to have the user interact with the view using the command key and mouse when the view also does not receive keyDown and keyUp events. That would be confusing. The view does custom processing on keyDown and keyUp events. (The software is a vertical market application.)
Sorry, latent Windowsism. I refer to things that are not NSControl subclasses as controls, such as NSTextView.
Since your widget requires using the keyboard as well, you sound like you're on the right track. Make sure the lack of color in the window management buttons is a sufficient clue to your users why clicking the widget didn't do anything. If not, maybe you could desaturate colors in your own control, maybe giving a less severe appearance than the disabled variant. Off the top of my head (no Mac at the moment), NSPopUpButton would be a good example: an enabled control in a non-main window isn't blue, but still has black text; a disabled control has gray text.
Anyway, sounds like you've got a pretty good handle on the situation.
--Kyle Sluder
(Sent from the road)_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden