Pausing & Resuming Sound in Cocoa Mac

By | March 29, 2011

Hi,

If you want to Pause an instance of NSSound which is being played in Cocoa Mac, use the following line of code.

[yourSound pause];

‘yourSound’ is the NSSound Object.

Similarlyl for resuming NSSound in cocoa Mac

[yourSound resume];

Leave a Reply

Your email address will not be published. Required fields are marked *