• 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: main window sound
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: main window sound


  • Subject: Re: main window sound
  • From: David Cairns <email@hidden>
  • Date: Sat, 25 Jan 2003 17:24:42 -0500

You can use an NSSound to play a .snd or AIFF or mp3 or whatever you want. try this:

- (void)awakeFromNib {
NSSound *mySound = [[NSSound alloc] initWithContentsOfFile: myFile byReference: NO];
[mySound play];
}



-- dave

--------------------------------------------
"see you later, space cowboy..."
--------------------------------------------
_______________________________________________
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.

  • Prev by Date: Re: Struggling with NSTextView in a custom view
  • Next by Date: Re: cascading sheets and HIG
  • Previous by thread: main window sound
  • Next by thread: simulating drawing of the NSImageCell frame
  • Index(es):
    • Date
    • Thread