I’m making a Cocoa application and I wanna implement a Screen Hot Corners System (Just like Exposé Active Corners). My application don’t have a Nib file and It’ll run at the background. I wanna know how to constantly track mouse position, in order to know if the cursor reaches one of the screen corners, to invoke a method. Could someone help me?
本当にありがとうございました。
I’m making a Cocoa application and I wanna implement a Screen Hot Corners System
Share
Create a
CGEventTapfor the events you’re interested in (probably justkCGEventMouseMoved).