ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Protocols/NSColorPickingCustom.rtf

This is NSColorPickingCustom.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.

s6 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSColorPickingCustom
pard s1 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Adopted By:tab b0 fs28 f1 NSColorPicker
fs20 
fs28 s9 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSColorPicking.h
fs20 
fs28 pard s24 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Protocol Description
fs14 
fs28 pard s2 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 Together with the NSColorPickingDefault protocol, NSColorPickingCustom provides a way to add color pickers'd0custom user interfaces for color selection'd0to an application's NSColorPanel. The NSColorPickingDefault protocol provides basic behavior for a color picker. The NSColorPicker class adopts the NSColorPickingDefault protocol. The easiest way to implement a color picker is to create a subclass of NSColorPicker and use it as a base upon which to add the NSColorPickingCustom protocol. 
fs16 
fs28 s22 f0 b fs24 See also:  b0 fs28 f1 NSColorPickingDefault, NSColorPicker (class)
fs14 
fs28 pard s24 li100 fi0 ri1007 ql f0 b fs24 
fs28 Getting the Mode 
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (int)b currentModeb0 tab Returns the color picker'27s current mode (or submode, if applicable). The returned value should be unique to your color picker. (b NSColorPanel.hb0 . defines unique values for the standard color pickers used by the Application Kit.)
fi-6552 fs16 
fs28 fi-6552 {f3 -} (BOOL)b supportsMode:b0 (int)i modetab i0 Returns YES if the receiver supports the specified picking mode.
pard s24 li100 fi0 ri1007 ql f0 b fs48 
fs28 Getting the View 
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSView *)b provideNewView:b0 (BOOL)i firstRequesti0 tab Returns the view containing the color picker'27s user interface. This message is sent to the color picker whenever the color panel attempts to display it; the argument indicates whether this is the first time the message has been sent. If i firstRequesti0  is YES, the method should perform any initialization required (such as lazily loading a nib file).
pard s24 li100 fi0 ri1007 ql f0 b fs48 
fs28 Setting the Current Color 
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b setColor:b0 (NSColor *)i aColori0 tab Adjusts the color picker to make i aColori0  the currently selected color.
}

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