I am wanting to trap the event when you let go of the magic mouse after 
scrolling or after you take your fingers off the trackpad from doing a two 
fingered scroll. In the demo app of the NSEventMonitorMBS class it works 
perfectly. When you raise your finger off the mouse or the trackpad you get a 
gesture end event that would be perfect to know when to change the display. It 
didn’t work in my app at all and it took me some time to figure out the 
difference was that I was compiling for 64 bit and the example program was 
compiling for 32 bit. If you compile the demo app as 64 bit then it doesn’t get 
any gesture events at all. If you apply the mask for any gesture events then 
you get nothing at all. The constants all look correct on 64 or 32 bit but 
there are some events that just don’t come through when compiled for 64 bit. 
It’s possible that Apple isn’t using these events anymore and there is some 
other way to get this info? But there is no note in Apple’s header files about 
them being deprecated or anything like that.

Specifically the events I’m looking for are begin and end gesture. It shows up 
when compiled for 32 bit but is missing when compiled for 64. If you apply the 
mask NSEventMBS.NSEventMaskEndGesture or NSEventMBS.NSEventMaskBeginGesture you 
get nothing at all on a 64 bit app while it works perfectly on a 32 bit app.

It’s possible I just don’t know what I’m doing ;) but it seems if it works for 
32 bit but not for a 64 bit compile then it something other than what I'm doing 
;) Any suggestions are welcome!



Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org                
http://MacHomeAutomation.com




_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to