On Jul 22, 2012, at 7:52 PM, Jay Reynolds Freeman 
<[email protected]> wrote:

> I guess my main problem with all this is that Apple provides [NSSound 
> isPlaying] with no indication that the method is not general-purpose; reading 
> the documentation would have you think that it would return a correct answer 
> no matter when and how used.

It's not an issue with -isPlaying. It's a question of whether the 
implementation of NSSound can still function properly when the runloop is hung 
(by your infinite loop). In 10.6 it could, in 10.7 it can't. The details are of 
course internal to NSSound's implementation, but it's an example of why you 
shouldn't lock up the runloop when you don't need to.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to