Hi, I tried that, passed NULL at the callback. But it didn't works MouseMove event. All other cases of mouse its works good.
Thanks In Advance, Sheen --- On Sun, 12/14/08, Jean-Daniel Dupas <devli...@shadowlab.org> wrote: > From: Jean-Daniel Dupas <devli...@shadowlab.org> > Subject: Re: Cancel CGEvent > To: sheen4...@yahoo.com > Cc: cocoa-dev@lists.apple.com > Date: Sunday, December 14, 2008, 12:09 AM > Le 13 déc. 08 à 19:19, sheen mac a écrit : > > > Hi All, > > > > Is it possible to cancel CGEvent for mouse at > CGEventTrapCallBack ?. > > Could suggest some link info?. > > > > Thanks In Advance, > > Sheen > > > From the CGEventTapCallBack reference: > > If the event tap is an active filter, your callback > function should return one of the following: > > • The (possibly modified) event that is passed in. This > event is passed back to the event system. > > • A newly-constructed event. After the new event has > been passed back to the event system, the new event will be > released along with the original event. > > • NULL if the event passed in is to be deleted. > > > > Did you try that and it didn't work, or have you just > miss that in the reference ? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com