Contents

createView(forParameterID:)

Provides an NSView to be associated with the given parameter.

Declaration

func createView(forParameterID parameterID: UInt32) -> NSView!

Parameters

  • parameterID:

    The ID of the parameter to be associated with the custom UI.

Mentioned in

Return Value

An NSView or subclass of NSView.

Discussion

The host application calls this plug-in method 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 the method, and will be released by the caller. The implementation may look something like this:

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