<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxParameterCreationAPI_v5/addPopupMenu(withName:parameterID:defaultValue:menuEntries:parameterFlags:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxParameterCreationAPI_v5(im)addPopupMenuWithName:parameterID:defaultValue:menuEntries:parameterFlags:"
  },
  "title" : "addPopupMenu(withName:parameterID:defaultValue:menuEntries:parameterFlags:)"
}
-->

# addPopupMenu(withName:parameterID:defaultValue:menuEntries:parameterFlags:)

Creates a popup menu parameter and adds it to the plug-in’s parameter list.

```
func addPopupMenu(withName name: String, parameterID: UInt32, defaultValue: UInt32, menuEntries entries: [Any], parameterFlags flags: FxParameterFlags) -> Bool
```

## Parameters

`name`

Name of the parameter in the user interface.

`parameterID`

Unique identifier for a parameter. Used to retrieve, set, or validate the parameter.

`defaultValue`

Index of the initial entry for the parameter.

`entries`

Array of NSStrings representing the entries in the menu.

`flags`

Flags that encode various state values for the parameter.

## Return Value

Returns `YES` if the application successfully creates a popup menu parameter; `NO` otherwise.

## Discussion

Use [`getIntValue(_:fromParameter:at:)`](/documentation/professional_video_applications/FxParameterRetrievalAPI_v6/getIntValue(_:fromParameter:at:)) to retrieve the menu parameter index value as an integer.

---

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)