Instance Method

removeColorWithKey:

Removes the color associated with the specified key from the receiver.

Declaration

- (void)removeColorWithKey:(NSColorName)key;

Parameters

key

The key for which to remove the color.

Discussion

This method does nothing if the receiver doesn’t contain the key. This method posts NSColorListDidChangeNotification to the default notification center. It raises NSColorListNotEditableException if the receiver is not editable.

See Also

Managing Colors By Key

allKeys

An array of the keys by which the NSColor objects are stored in the receiver.

- colorWithKey:

Returns the NSColor object associated with the given key.

- insertColor:key:atIndex:

Inserts the specified color at the specified location in the receiver.

- setColor:forKey:

Associates the specified NSColor object with the specified key.