• 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: Perform additional action when window receives any mouse- or keyDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perform additional action when window receives any mouse- or keyDown


  • Subject: Re: Perform additional action when window receives any mouse- or keyDown
  • From: Murat Konar <email@hidden>
  • Date: Tue, 16 Feb 2010 15:06:44 -0800

Uh, if I understand what the op wants to do correctly, overriding - [NSWindow mouseDown:] isn't going to do it.

If the user clicks inside a view that overrides -mouseDown: (and friends -rightMouseDown: and -otherMouseDown:), there's no guarantee that your window's override will get called.

Overriding sendEvent seems like the best plan.

_murat

On Feb 16, 2010, at 1:05 PM, Jerry Krinock wrote:


On 2010 Feb 16, at 10:58, Paul Sanders wrote:

-[NSWindow mouseDown:]? (inherited from NSResponder).

Thanks, Paul. I hadn't realized that inheritance.

Also, I'd need -rightMouseDown:, -keyDown:, -otherMouseDown:, ???

At least, no notification needed.
_______________________________________________

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: 
 >Perform additional action when window receives any mouse- or keyDown (From: Jerry Krinock <email@hidden>)
 >Re: Perform additional action when window receives any mouse- or keyDown (From: "Paul Sanders" <email@hidden>)
 >Re: Perform additional action when window receives any mouse- or keyDown (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Validation error after setting the value of a boolean attribute
  • Next by Date: Re: Validation error after setting the value of a boolean attribute
  • Previous by thread: Re: Perform additional action when window receives any mouse- orkeyDown
  • Next by thread: Re: Perform additional action when window receives any mouse- or keyDown
  • Index(es):
    • Date
    • Thread