Does NSSound not work in a Unix tool?
Does NSSound not work in a Unix tool?
- Subject: Does NSSound not work in a Unix tool?
- From: Uli Zappe <email@hidden>
- Date: Thu, 21 Mar 2002 06:47:46 +0100
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.