Is there a way to register for global mouse moved events in Cocoa? I was able to register for the events using Carbon\'s InstallEventHandler(), but would prefer
In SnowLeopard there is a new class method on NSEvent which does exactly what you want: + (id)addGlobalMonitorForEventsMatchingMask:(NSEventMask)mask handler:(void (^)(NSEvent*))block. You’ll want mask = NSMouseMovedMask.