• 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: Fri, 10 Sep 2010 23:53:35 -0700

On Sep 10, 2010, at 10:50 PM, Richard Somers <email@hidden> wrote:

> 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?

You want -acceptsFirstMouse:.

http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/acceptsFirstMouse:

--Kyle Sluder_______________________________________________

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

  • Follow-Ups:
    • Re: Inactive Window Receives Mouse Events
      • From: Richard Somers <email@hidden>
References: 
 >Inactive Window Receives Mouse Events (From: Richard Somers <email@hidden>)

  • Prev by Date: Inactive Window Receives Mouse Events
  • Next by Date: Re: Inactive Window Receives Mouse Events
  • Previous by thread: Inactive Window Receives Mouse Events
  • Next by thread: Re: Inactive Window Receives Mouse Events
  • Index(es):
    • Date
    • Thread