MonobjcMonobjc Documented Class Library
NSSound Constructor
NamespacesMonobjc.AppKitNSSoundNSSound()()()()
Members
IconMemberDescription
NSSound(NSString, Boolean)

Initializes the receiver with the the audio data located at a given filepath.

Original signature is '- (id)initWithContentsOfFile:(NSString *)filepath byReference:(BOOL)byRef'

Available in Mac OS X v10.0 and later.


NSSound(NSURL, Boolean)

Initializes the receiver with the audio data located at a given URL.

Original signature is '- (id)initWithContentsOfURL:(NSURL *)fileUrl byReference:(BOOL)byRef'

Available in Mac OS X v10.0 and later.


NSSound(NSData)

Initializes the receiver with a given audio data.

Original signature is '- (id)initWithData:(NSData *)audioData'

Available in Mac OS X v10.0 and later.


NSSound(NSPasteboard)

Initializes the receiver with data from a pasteboard. The pasteboard should contain a type returned by soundUnfilteredPasteboardTypes. NSSound expects the data to have a proper magic number, sound header, and data for the formats it supports.

Original signature is '- (id)initWithPasteboard:(NSPasteboard *)pasteboard'

Available in Mac OS X v10.0 and later.


NSSound(NSCoder)

Returns an object initialized from data in a given unarchiver. (required)

Original signature is '- (id)initWithCoder:(NSCoder *)decoder'

Available in Mac OS X v10.0 and later.


NSSound(Id, NSString)

Initializes an instance with a property list object and a type string.

Original signature is '- (id)initWithPasteboardPropertyList:(id)propertyList ofType:(NSString *)type'

Available in Mac OS X v10.6 and later.


NSSound()()()()
Initializes a new instance of the NSSound class.

NSSound(IntPtr)
Initializes a new instance of the NSSound class.

NSSound(String, Object, array<Object>[]()[][])
Initializes a new instance of the NSSound class.

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)