Instance Method

shouldArchiveValueForKey:

Returns a Boolean value indicating whether the value for a given key should be archived.

Declaration

- (BOOL)shouldArchiveValueForKey:(NSString *)key;

Parameters

key

The name of one of the receiver’s properties.

Return Value

YES if the specified property should be archived, otherwise NO.

Discussion

The default implementation returns YES. This method is called by the object's implementation of encodeWithCoder:.

See Also

Using Key-Value Coding Extensions

+ defaultValueForKey:

Returns the default value of the property with the specified key.