ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSColorPicker.rtf

This is NSColorPicker.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSColorPicker 
pard s14 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSObject
fs20 
fs28 s7 f0 b fs24 Conforms To:tab b0 fs28 f1 NSColorPickingDefault
fi0 NSObject (NSObject)
fs20 
fs28 s8 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSColorPicker.h 
fs20 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 NSColorPicker is an abstract superclass that implements the NSColorPickingDefault protocol. The NSColorPickingDefault and NSColorPickingCustom protocols define a way to add color pickers (custom user interfaces for color selection) to the NSColorPanel. The simplest way to implement a color picker is to create a subclass of NSColorPicker, instead of implementing the fs28 NSColorPickingDefaultfs28  protocol in another kind of object. (To add functionality, implement the NSColorPickingCustom methods in your subclass.)
fs16 
fs28 The NSColorPickingDefault protocol specification describes the details of implementing a color picker and adding it to your application'27s NSColorPanel; you should look there first for an overview of how NSColorPicker works. This specification is provided to document the specific behavior of NSColorPicker'27s methods. 
fs16 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs24 
fs28 Initializing an NSColorPicker 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (id)b initWithPickerMask:b0 (int)i aMaski0 tab  Initializes the receiver for the specified mask and color
s11 li7030 fi-6553 fi-5796 b colorPanel:b0 (NSColorPanel *)i colorPaneli0 tab tab panel, caching the i colorPanel i0 value so it can later be returned by the b colorPanel b0 method.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Getting the Color Panel 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSColorPanel *)b colorPanelb0 tab Returns the NSColorPanel that owns this NSColorPicker.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Adding Button Images 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b insertNewButtonImage:b0 (NSImage *)i newImagei0 tab  
s11 li7030 fi-6553 fi-5796 b in:b0 (NSButtonCell *)i newButtonCelli0 tab Called by the color panel to insert a new imagei  i0 into the specified cell. Override this method to customize i newImagei0  before insertion in i newButtonCelli0 . 
s9 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSImage *)b provideNewButtonImageb0 tab Returns the button image for the color picker. The color panel will place this image in the mode button that the user uses to select this picker. (This is the same image that the color panel uses as an argument when sending the b insertNewButtonImage:in: b0 message.)b  b0 The default implementation looks in the color picker'27s bundle for a TIFF file named after the color picker'27s class, with the extension ".tiff".
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Setting the Mode 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b setMode:b0 (int)i modei0 tab Does nothing. Override to set the color picker'27s mode. 
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Using Color Lists 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b attachColorList:b0 (NSColorList *)i colorListi0 tab Does nothing. Override to attach a color list to a color picker. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b detachColorList:b0 (NSColorList *)i colorListi0 tab Does nothing. Override to detach a color list from a color picker. 
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Responding to a Resized View 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b viewSizeChanged:b0 (id)i senderi0 tab Does nothing. Override to respond to a size change. 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.