• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing Cocoa/Quartz from a dynamic library function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Accessing Cocoa/Quartz from a dynamic library function (From: Mikael Grev <email@hidden>)

  • Prev by Date: several questions about saving a bundle in an NSDocument based application
  • Next by Date: Re: How determine if file is in Trash, given Path or Alias
  • Previous by thread: Accessing Cocoa/Quartz from a dynamic library function
  • Next by thread: several questions about saving a bundle in an NSDocument based application
  • Index(es):
    • Date
    • Thread