Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSColorListMBS.colorWithKey(key as string) as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color with the given key.
Notes: Returns nil if key doesn't exist.

Feedback, Comments & Corrections

NSColorListMBS.Create(name as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Creates a color list; specify "" if you don't want a name.
Notes: Note that this does not add the color list to availableColorLists until the color list is saved into the user's path with writeToFile("").

See also:

Feedback, Comments & Corrections

NSColorListMBS.Create(name as string, path as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Creates a color list; specify "" if you don't want a name.
Notes: Note that this does not add the color list to availableColorLists until the color list is saved into the user's path with writeToFile("").

See also:

Feedback, Comments & Corrections

NSColorListMBS.insertColor(theColor as NSColorMBS, key as string, index as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Inserts color at the specified location.
Notes: If a color by the same key is already in the list but at a different location it is removed from there.

Feedback, Comments & Corrections

NSColorListMBS.isEditable as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Whether this color list is editable.
Notes: True if it is editable.

Feedback, Comments & Corrections

NSColorListMBS.Load(name as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Loads the named color list from availableColorLists.
Notes: Returns true on success.

Feedback, Comments & Corrections

NSColorListMBS.name as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Name of the color list.

Feedback, Comments & Corrections

NSColorListMBS.removeColorWithKey(key as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Removes the color with the given key.
Notes: Does nothing if the key does not exist.

Feedback, Comments & Corrections

NSColorListMBS.removeFile
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: If the color list is in the user's path, removes the corresponding file in user's colorlists directory.
Notes: Also removes the color list from availableColorLists. If there are no outstanding references to the color list this might deallocate the object as well.

Feedback, Comments & Corrections

NSColorListMBS.setColor(theColor as NSColorMBS, key as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: If key already exists, sets the corresponding color; otherwise inserts the color at the end.

Feedback, Comments & Corrections

NSColorListMBS.writeToFile(path as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Writes the color list to the given path.
Notes:
Use "" to save to the user's private colorlists directory. If the color list is named, this method will also insert the color list into availableColorLists.
Returns true for success.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacBase Plugin.




Links
MBS FileMaker tutorial videos