Window's controls receive mouse-down events, but the win stay unactive. How?

2010-07-26 Thread cocoa nick
Hello How could i implement such a window? Delving in documentation, i have found that the method -(BOOL)acceptsFirstMouse (of NSView) should return YES and the mouse down events will be sent directly to the control first (but the window still becomes active afterwards). Is there a way not to let w

How to fastly get the active window's title?

2010-07-26 Thread cocoa nick
What is the fastest (in terms of execution) way to get the active window's (of arbitrary application, not necessarily mine) title? I have found only the way involving AppleScript which doesn't seem fast Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists

Dock-like application

2010-07-28 Thread cocoa nick
How to make a window not to activate its process after click on that window? (for example, like Dock does that - after you click on the dock, your currently active process will remain active, while dock receives mouse event and performs some actions) Thanks _

mouse Event Taps, CGEvent and destination control

2010-07-28 Thread cocoa nick
Hello Is it possible to get a destination control's Accessibility API's AXTitle (or another distinguishing characteristic - i need to know, if the clicked control was Microsoft Word's "Document Pane" (it is AXView object, in terms of accessibility)) from the callback function, that is called whenev