[myObject isKindOfClass:[NSString class]]
To get the mouse position on the screen:
NSPoint mouseLoc;
mouseLoc = [NSEvent mouseLocation];
To get the mouse position wrt local window:
NSPoint point = [self convertPoint:[theEvent locationInWindow] fromView:nil];
沒有留言:
發佈留言