• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inactive Window Receives Mouse Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Inactive Window Receives Mouse Events (From: Richard Somers <email@hidden>)
 >Re: Inactive Window Receives Mouse Events (From: Kyle Sluder <email@hidden>)
 >Re: Inactive Window Receives Mouse Events (From: Richard Somers <email@hidden>)
 >Re: Inactive Window Receives Mouse Events (From: Kyle Sluder <email@hidden>)
 >Re: Inactive Window Receives Mouse Events (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: [iOS] Sub Class MKPlacemark - Identifying each Placemark
  • Next by Date: Re: scrolling content view resizes visibly but bounds and frame don't change
  • Previous by thread: Re: Inactive Window Receives Mouse Events
  • Next by thread: Re: Inactive Window Receives Mouse Events
  • Index(es):
    • Date
    • Thread