# IBPalette class documentation

### Authors

Generated by heron

# Software documentation for the IBPalette class

## IBPalette : NSObject

> Declared in:
>   InterfaceBuilder/IBPalette.h

Description forthcoming.

Instance Variables
Method summary

- +objectForView:
- +typeForView:
- -associateObject:type:with:
- -dealloc
- -finishInstantiate
- -originalWindow
- -paletteDocument
- -paletteIcon

### objectForView:

+ (id) objectForView: (NSView*)aView;
Description forthcoming.

### typeForView:

+ (NSString*) typeForView: (NSView*)aView;
Description forthcoming.

### associateObject: type: with:

- (void) associateObject: (id)anObject type: (NSString*)aType with: (NSView*)aView;
Associate a particular object and DnD type with a view - so that Gorm knows to initiate a DnD session with the specified object and type rather than an archived copy of the view itsself and the default type (IBViewPboardType).

### dealloc

- (void) dealloc;
Releases all the instance variables apart from the window (which is presumed to release itsself when closed) and removes self as an observer of notifications before destroying self.

### finishInstantiate

- (void) finishInstantiate;
Method called by GUI builder application when a new palette has been created and its model (nib/gorm) has been loaded. Any palette initialization should be done here.

### originalWindow

- (NSWindow*) originalWindow;
Return the window containing the views that may be dragged from the palette.

### paletteDocument

- (id<IBDocuments>) paletteDocument;
Returns an object representing the palette which conforms to the IBDocuments protocol.

### paletteIcon

- (NSImage*) paletteIcon;
Return the icon representing the palette.

## Instance Variables for IBPalette Class

### icon

@protected NSImage* icon;
Description forthcoming.

### originalWindow

@protected NSWindow* originalWindow;
Description forthcoming.

### paletteDocument

@protected id paletteDocument;
Description forthcoming.