ftp.nice.ch/pub/next/developer/resources/palettes/ObjectPalette.README

This is the README for ObjectPalette.1.0.N.bs.tar.gz [Download] [Browse] [Up]

¬
Jim Million    uunet!wiltel!jmillion    October 1992    				              

ObjectPalette (v1.0)

This is a simple example to demonstrate how to build a custom Object palette 
in NeXTstep 3.0.
¬

Important Files...

¬ MyObject.[hm]  is the Object subclass we are palettizing.  It may implement methods declared in the informal protocol 'IBObject' to specify custom Inspectors, Editor, and File Viewer image.  This class should also implement read: and write: methods if it declares instance variables that need to be 'remembered'.
 
¬ MyObjectInspector.[hm] is the managing object for MyObject's custom Attributes Inspector.  You may implement inspectors to override any of IB's default inspectors (Attributes, Connections, Size, Help - usually, only Attributes is necessary).  The name of this class, should be the same as the name returned in MyObject's '(const char*) getInspectorClassName' method.

¬ ObjectPalette.[hm] is the owner of the palette nib file (ObjectPalette.nib).  It is in this class that you associate the 'draggable' palette image (some View) with an instance of the class being palettized.

¬ palette.table is where you specify any custom Classes, Sounds, Images, etc.  that you wish to be included when the palette is loaded.

¬ ObjectPalette.nib (in English.lproj) is the palette nib.

¬ MyObjectInspector.nib (in English.lproj) is the custom Attributes Inspector nib.

¬ TestMyObject.nib is an example nib using the ObjectPalette.palette.


Notes...

¬ Remember, to instantiate an Object subclass in IB, drag the palette image into the File Viewer (as with DBKit's DB_Module).

¬

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