# IBInspector class documentation

### Authors

Generated by heron

# Software documentation for the IBInspector class

## IBInspector : NSObject

> Declared in:
>   InterfaceBuilder/IBInspector.h

Description forthcoming.

Instance Variables
Method summary

- -dealloc
- -initialFirstResponder
- -object
- -ok:
- -okButton
- -revert:
- -revertButton
- -setObject:
- -textDidBeginEditing:
- -touch:
- -wantsButtons
- -window

### dealloc

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

### initialFirstResponder

- (NSView*) initialFirstResponder;
The first view to be selected in the inspector.

### object

- (id) object;
The object being inspected.

### ok:

- (void) ok: (id)sender;
Action to take when user clicks the OK button

### okButton

- (NSButton*) okButton;
Inspector supplied button - the inspectors manager will position this button for you.

### revert:

- (void) revert: (id)sender;
Action to take when user clicks the revert button

### revertButton

- (NSButton*) revertButton;
Inspector supplied button - the inspectors manager will position this button for you.

### setObject:

- (void) setObject: (id)anObject;
Extension - not in NeXTstep - this message is sent to your inspector to tell it to set its edited object and make any changes to its UI needed.

### textDidBeginEditing:

- (void) textDidBeginEditing: (NSNotification*)aNotification;
Used to take notice of textfields in inspector being updated.

### touch:

- (void) touch: (id)sender;
Method to mark the inspector as needing saving (ok or revert).

### wantsButtons

- (BOOL) wantsButtons;
If this method returns `YES`, the manager will partition off a section of the inspector panel for display of 'ok' and 'revert' buttons, which your inspector must supply.

### window

- (NSWindow*) window;
The window that the UI of the inspector exists in.

## Instance Variables for IBInspector Class

### object

@protected id object;
Description forthcoming.

### okButton

@protected NSButton* okButton;
Description forthcoming.

### revertButton

@protected NSButton* revertButton;
Description forthcoming.

### window

@protected NSWindow* window;
Description forthcoming.