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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to