Re: Writing optimized screeshot utility.
Re: Writing optimized screeshot utility.
- Subject: Re: Writing optimized screeshot utility.
- From: "Teemu Keinonen" <email@hidden>
- Date: Fri, 23 Nov 2007 12:52:34 +0200
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@hidden> wrote:
> On Nov 21, 2007 6:15 AM, Teemu Keinonen <email@hidden> 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
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden