As the titles says i wonder if it is possible to detect if the mouse button is down. I tried putting this code in my app delegate.m but with no success.
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog(@"hello world!");
}
A quick google search showed me that this method only works inside of NSWindows. However, there most be some way to detect if mouse position is pressed, and if so; how can i do it?