<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxCustomParameterViewHost_v2/createView(forParameterID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxCustomParameterViewHost_v2(im)createViewForParameterID:"
  },
  "title" : "createView(forParameterID:)"
}
-->

# createView(forParameterID:)

Provides an NSView to be associated with the given parameter.

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

## Parameters

`parameterID`

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

## 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:

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)