Edit

Share via


NSObject.MutableCopy Method

Definition

Creates a mutable copy of the specified NSObject.

[Foundation.Export("mutableCopy")]
public virtual Foundation.NSObject MutableCopy ();
abstract member MutableCopy : unit -> Foundation.NSObject
override this.MutableCopy : unit -> Foundation.NSObject

Returns

Attributes

Remarks

Objects that implement the NSMutableCopying protocol will a new instance of the mutable version of the object. For example calling MutableCopy on an NSCharacterSet returns an NSMutableCharacterSet.

Types that implement the NSMutableCopying protocol include: AVAudioMix, AVAudioMixInputParameters, AVComposition, AVMetadataItem, AVVideoComposition, AVVideoCompositionInstruction, AVVideoCompositionLayerInstruction, NSArray, NSAttributedString, NSCharacterSet, NSData, NSDictionary, NSIndexSet, NSObject, NSSet, NSString, NSUrlRequest, SKPayment and NSParagraphStyle.

Applies to