Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling right click only



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.