Overridden by subclasses to substitute another object or a copy for itself during distribution encoding.
Original signature is '- (id)replacementObjectForPortCoder:(NSPortCoder *)aCoder'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual Id ReplacementObjectForPortCoder( NSPortCoder aCoder )
Public Overridable Function ReplacementObjectForPortCoder ( _ aCoder As NSPortCoder _ ) As Id
public: virtual Id^ ReplacementObjectForPortCoder( NSPortCoder^ aCoder )

- aCoder (NSPortCoder)
- The port coder encoding the receiver.

The object encode instead of the receiver (if different).

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)