• 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: NSViewAnimation vs Distributed Notification: Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSViewAnimation vs Distributed Notification: Bug? (From: Iceberg-Dev <email@hidden>)
 >Re: NSViewAnimation vs Distributed Notification: Bug? (From: Steven Degutis <email@hidden>)

  • Prev by Date: Re: constructing an NSString with va_list?
  • Next by Date: Re: constructing an NSString with va_list?
  • Previous by thread: Re: NSViewAnimation vs Distributed Notification: Bug?
  • Next by thread: constructing an NSString with va_list?
  • Index(es):
    • Date
    • Thread