O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSMutableCopying — Mac OS X 10.0

Synopsis

This protocol declares the single method mutableCopyWithZone:, which is implemented by classes that wish to allow clients to make mutable copies of themselves. This protocol should be adopted only by classes that have both mutable and immutable variants (for example, NSString and NSMutableString). Clients create mutable copies of objects through NSObject’s mutableCopy convenience method, which invokes mutableCopyWithZone: with the default zone.

@protocol NSMutableCopying
                                  // Instance Methods
   - (id)mutableCopyWithZone:(NSZone *)zone;
@end

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required