Skip navigation.
 
mlRe: Writing optimized screeshot utility.
FROM : Teemu Keinonen
DATE : Fri Nov 23 11:52:34 2007

Is there any way to make connection to window server and create runloop
without using

>    [NSApplication sharedApplication];
>    [NSApp run];


pair? I want to create a library for screenshotting, not a standalone
application.
That application icon appearing to dock is very unwanted behaviour.

- T. Keinonen

On Nov 21, 2007 6:20 PM, Shawn Erickson <<email_removed>> wrote:

> On Nov 21, 2007 6:15 AM, Teemu Keinonen <<email_removed>> wrote:
> > Ok, figured it out myself. I get printouts now:
> >
> >    [NSApplication sharedApplication];
> >      CGRegisterScreenRefreshCallback (MyScreenRefreshCallback, NULL);
> >    [NSApp run];
>
> Yeah you need an active connection to the window server and an active
> runloop in the main thread.
>
> -Shawn
>

Related mailsAuthorDate
mlWriting optimized screeshot utility. Teemu Keinonen Nov 20, 13:02
mlRe: Writing optimized screeshot utility. Shawn Erickson Nov 20, 16:14
mlRe: Writing optimized screeshot utility. Teemu Keinonen Nov 21, 13:32
mlFwd: Writing optimized screeshot utility. Teemu Keinonen Nov 21, 15:15
mlRe: Writing optimized screeshot utility. Shawn Erickson Nov 21, 17:20
mlRe: Writing optimized screeshot utility. Teemu Keinonen Nov 23, 11:52
mlRe: Writing optimized screeshot utility. Nicko van Someren Nov 24, 06:12