# NSColorList

scottc@net-community.com
n.pero@mi.flashnet.it

Manage named lists of NSColors.

1996, 2000 Free Software Foundation, Inc.
Software documentation for the NSColorList class
AppKit/NSColorList.h
NSCoding
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
availableColorLists
Description forthcoming.
colorListNamed:
name
Description forthcoming.
allKeys
Description forthcoming.
colorWithKey:
key
Description forthcoming.
encodeWithCoder:
aCoder
Description forthcoming.
initWithCoder:
aDecoder
Description forthcoming.
initWithName:
name
Initializes a new, empty color list registered under given name.
initWithName:
name
fromFile:
path

Initializes a new color list registered under given name, taking contents from the file specified in path. (Path should include the filename with extension (usually ".clr"), and by convention name should be the same as filename without the extension.)

The format of the file can be either an archive of an NSColorList or an ASCII format. ASCII files follow this format:

first line = [#/colors]
each subsequent line describes a color as [int float+ string]
the first int describes the method (RGBA, etc.), the floats provide its arguments (e.g., r, g, b, alpha), and string is name.

The method corresponds to one of the NSColor initializers. We are looking for documentation of the exact correspondence on OpenStep; for now the only supported method is "0", which is an RGBA format with the arguments in order R,G,B, A.

insertColor:
color
key:
key
atIndex:
location
Description forthcoming.
isEditable
Description forthcoming.
name
Description forthcoming.
removeColorWithKey:
key
Description forthcoming.
removeFile
Description forthcoming.
setColor:
aColor
forKey:
key
Description forthcoming.
writeToFile:
path
Description forthcoming.