---
title: "createView(forParameterID:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxcustomparameterviewhost_v2/createview(forparameterid:)"
---

# createView(forParameterID:)

Provides an NSView to be associated with the given parameter.

## Declaration

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

## Parameters

- `parameterID`: The ID of the parameter to be associated with the custom UI.

## Mentioned in

Adding parameters to plug-ins

## Return Value

Return Value An NSView or subclass of NSView.

## Discussion

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];
