Re: Writing optimized screeshot utility.
Re: Writing optimized screeshot utility.
- Subject: Re: Writing optimized screeshot utility.
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 21 Nov 2007 08:20:37 -0800
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