Instance Method

createViewForParm:

Provides a view to be associated with the given parameter.

Required.

Declaration

- (NSView *)createViewForParm:(UInt32)parmId;

Parameters

parmId

The ID of the parameter to be associated with the custom user interface.

Return Value

An NSView instance that is not autoreleased.

Discussion

This plug-in method is called by the host application during the parameter list setup sequence, once for each plug-in parameter that has the kFxParameterFlag_CUSTOM_UI parameter flag set. The view may be created dynamically or, more commonly, retrieved from a NIB file in the plug-in's resources directory.

The object returned by this method should not be autoreleased. It should be allocated by this method and released by the caller.

The implementation may look something like:

if ( parmId == kMyViewParmID )
      return [[MyView alloc] init];