Re: Accessing Cocoa/Quartz from a dynamic library function
Re: Accessing Cocoa/Quartz from a dynamic library function
- Subject: Re: Accessing Cocoa/Quartz from a dynamic library function
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 01 Jun 2009 21:28:21 -0700
On Jun 1, 2009, at 1:38 PM, Mikael Grev wrote:
CGRegisterScreenRefreshCallback (MyScreenRefreshCallback, NULL);
From the docs:
The callback function you register is invoked only if your
application has an active event loop. The callback is invoked in the
same thread of execution that is processing events within your
application.
That implies to me that it needs to be registered on the main thread
or it won't work.
b.bum
_______________________________________________
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