On Feb 28, 2010, at 12:35 AM, Steven Degutis wrote:

Firstly, you do not need to check if tAnimation is nil, since sending a message to nil is valid in ObjC. So I would personally remove that if() and just de-indent all the code that's inside it.

Actually, in the real implementation there's an else after the if.

Secondly, I *think* what you're running into is the fact that "blocking mode" means the main thread blocks, and thus does not receive any distributed notifications. The second snippet of code (the one that works fine) does not animate on the main thread, thus everything works correctly.

If you want to use NSViewAnimation for some reason (but I wouldn't), then you can change the mode away from blocking-mode to something more background-thready.

The more I investigate this, the more it looks also linked to having 10 NSTimer with a 1/16.0f period.


_______________________________________________

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