Re: Does NSSound not work in a Unix tool?
Re: Does NSSound not work in a Unix tool?
- Subject: Re: Does NSSound not work in a Unix tool?
- From: Andrew Pinski <email@hidden>
- Date: Thu, 21 Mar 2002 01:35:05 -0500
Because you are not waiting for the sound to finish playing.
Thanks,
Andrew Pinski
On Thursday, March 21, 2002, at 12:47 , Uli Zappe wrote:
Hi,
is there any reason why NSSound wouldn't work in a Unix tool?
I.e. is there any reason why the following code wouldn't work?
#import <Cocoa/Cocoa.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
[[NSSound soundNamed:@"Submarine"] play];
[pool release];
return 0;
}
When I compile this code (of course linked to both Foundation and
AppKit) and execute it from the command line, I hear - nothing :-(
Bye
Uli
________________________________________________________
Uli Zappe email@hidden
Lorscher Stra_e 5 http://www.ritual.org
D-60489 Frankfurt Fon: +49-700-ULIZAPPE
Germany Fax: +49-700-ZAPPEFAX
________________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.