Overview of the NSSound Class
NSSound class makes it extremely simple for Cocoa applications to load and play sound files. Instance methods provide standard transport control so that a sound can be programmatically started, stopped and paused.
The class supports the following file and data formats:
You can load audio data into an
NSSound object from three sources:
a disk file—using a pathname or URL
network connection—using a URL
NSSound class can search for named sound resources in the application’s main bundle as well as two standard file system locations: