Re: NSViewAnimation vs Distributed Notification: Bug?
Re: NSViewAnimation vs Distributed Notification: Bug?
- Subject: Re: NSViewAnimation vs Distributed Notification: Bug?
- From: Iceberg-Dev <email@hidden>
- Date: Sun, 28 Feb 2010 01:45:06 +0100
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 (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