• 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: Does NSSound not work in a Unix tool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Does NSSound not work in a Unix tool?
      • From: Uli Zappe <email@hidden>
References: 
 >Does NSSound not work in a Unix tool? (From: Uli Zappe <email@hidden>)

  • Prev by Date: An other silly PrefPane problem
  • Next by Date: Re: NSThread
  • Previous by thread: Does NSSound not work in a Unix tool?
  • Next by thread: Re: Does NSSound not work in a Unix tool?
  • Index(es):
    • Date
    • Thread