| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm running 10.2.3 with the Dec 2002 dev tools release.
The following code does not work:
- (void) playMySound
{
currentSound = [NSSound soundNamed:@"MySound"];
[currentSound play];
while([currentSound isPlaying]);
}
The -isPlaying method does not return and the entire app hangs. I cannot get the delegate method sound:didFinishPlaying: to work either. The delegate method is never called.
As long as I don't check for the sound to have finished playing, it plays ok -- so the sound itself is not corrupted.
The above code works in 10.1.x. Any help appreciated.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.