• 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
Aqua animations drawing from separate thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Aqua animations drawing from separate thread


  • Subject: Aqua animations drawing from separate thread
  • From: Frederik Slijkerman <email@hidden>
  • Date: Fri, 14 Aug 2009 17:45:04 +0200

Hi,

Another question... I've noticed that Aqua animations, for example the pulsing default button, are implemented via a separate thread, which redraws the button repeatedly. This also causes the view (for example a custom view that I wrote myself) that contains the button to receive a drawRect message, of course.

The problem is that this drawRect message is sent from the separate thread, which means that drawing in all my custom views needs to be thread-safe. This is a huge pain.

Is there any way around this? Are you all always writing thread-safe drawRect handlers? It seems like a huge responsibility to make sure this will always work correctly...

Thanks in advance!

Best regards,
Frederik Slijkerman
_______________________________________________

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


  • Follow-Ups:
    • Re: Aqua animations drawing from separate thread
      • From: BravoBug Software <email@hidden>
    • Re: Aqua animations drawing from separate thread
      • From: Dave Keck <email@hidden>
  • Prev by Date: Re: Cocoa window in Carbon app and [NSApp postEvent]
  • Next by Date: Multi-User DB That Talks to Core Data?
  • Previous by thread: Re: iPhone: MPVolumeView not displaying
  • Next by thread: Re: Aqua animations drawing from separate thread
  • Index(es):
    • Date
    • Thread