• 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: Handling right click only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling right click only


  • Subject: Re: Handling right click only
  • From: Guy English <email@hidden>
  • Date: Tue, 14 Dec 2004 11:23:19 -0500

On Tue, 14 Dec 2004 14:19:59 +0100, Alexander Griekspoor
<email@hidden> wrote:
> Unfortunately that doesn't work. The moment I set the window to ignore
> the mouse events, the app won't even be called

I think you're out of luck here. As far as I know once the app has
accepted an event that's it - it doesn't pass it back to the window
server.

On the other hand you can try this: when you get your left mouse
event, flag something in your app so that it returns YES to
ignoresMouseEvents, and post a fake event using CGPostMouseEvent.
That'll add an event back into the stream and (hopefully) this time
you'll ignore it and it'll go to the next app.

See:
http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html
For details on core graphics remote operation.

Hope that helps a little,
Guy
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Handling right click only (From: Alexander Griekspoor <email@hidden>)

  • Prev by Date: Getting the computer name
  • Next by Date: Re: Getting the computer name
  • Previous by thread: Re: Handling right click only
  • Next by thread: Re: app crashes here: [NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
  • Index(es):
    • Date
    • Thread