intuitiv'3d API documentation Copyright ã1993 by Cub'x SystÜmes. All Rights Reserved.

InspectorView 

Inherits From:	View : Responder  : Object

Declared In:	i3d/InspectorView.h

Class Description

InspectorView is an abstract super-class that you must use to make a new inspector for a new 3d object. 
TorusWaveInsp located in the Example/CustomObject folder is an example of InspectorView subclass. intuitiv'3d's inspector works in two modes, real-time and differed. You can use the following macros to implement both modes:

INSPECTOR_IS_REAL_TIME	This macro returns YES if the real-time check box is selected.
INSPECTED_OBJECT	This macro returns the id of the inspected object.
UPDATE_SCENE	This macro performs a scene update.
UPDATE_OBJECT_IF_NEED(method,parameter) This macro applies method with parameter on the selected object if the real-time check box is selected. Not that method is not an @selector expression but the method selector itself.
Instance Variables

ibView 	The main view used inside InterfaceBuilder to build the inspector. You must connect this outlet with the main view inside InterfaceBuilder.

Method Types

Allocation, definition and initialization
	+ new
	+ findInspector:
	+ nibName
	+ isOkForMultipleSelection

User interface basic method
	- sendAllValueToObject:
	- receiveAllValueFromObject:
	- title
	
Class Methods
findInspector
	+ findInspector: aClass
This internal method search if there is already an allocated instance of the InspectorView subclass aClass. Subclasses of InspectorView are instanciated only one time. You don't have to use this method, the + new method use it to know if an instanciation have to be done.

isOkForMultlipleSelection
	+ (BOOL) isOkForMultipleSelection
This method returns whether it is possible to use multiple selection with your new inspector. Since you have nothing to do, to be compatible with the MultiSelection inspection, you rarely have to overload this method. The default implementation returns always YES.

new
	+ new
Allocate a new instance of InspectorView. You don't have to overload this method when implementing a subclass. This method loads your nib file using the + nibName method. 

See also: + nibName 

nibName
	+ (const char*) nibName
This method should be overloaded by your subclass and should returns the name of the nib file that you want to use with your InspectorView subclass. The file owner of this nib file should be an instance of your new class. This method is called by the default implementation of the + new method.

See also: + new 

Instance Methods

sendAllValueToObject
- sendAllValueToObject: anObject
You must overload this method. This method is called when the user click on the Ok button of the inspector. You must take all the values contains into your interface and send it to anObject. This method should returns self.

See also:  - receiveAllValueFromObject:

receiveAllValueFromObject
- receiveAllValueFromObject: anObject
You must overload this method. This method is called when the user click on the Revert button of the inspector or when a new object is inspected. You must get all instance variables' values contains into anObject and make your interface reflects these values.

See also:  - sendAllValueToObject: 

title
	- (const char*) title
You must overload this method. This method should returns the title of the inspector. The title of the inspector is the string that is displayed as the title of the displayer's panel.