---
title: "runModal(options:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikfilterbrowserpanel/runmodal(options:)"
---

# runModal(options:)

Displays the filter browser in a modal dialog that must be dismissed by the user but that is not  attached to a window.

## Declaration

```swift
func runModal(options inOptions: [AnyHashable : Any]! = [:]) -> Int32
```

## Parameters

- `inOptions`: A dictionary of options that describe the configuration to use for the filter browser user interface. For the possible keys you can supply see doc://com.apple.quartz/documentation/Quartz/filter-browser-option-keys and the constant doc://com.apple.quartz/documentation/Quartz/IKUISizeFlavor.

## Return Value

Return Value Either NSOKButton if the user validates, or NSCancelButton if the user cancels.

## See Also

### Displaying and Running the Panel

- [filterBrowserView(options:)](quartz/ikfilterbrowserpanel/filterbrowserview(options:).md)
- [begin(options:modelessDelegate:didEnd:contextInfo:)](quartz/ikfilterbrowserpanel/begin(options:modelessdelegate:didend:contextinfo:).md)
- [beginSheet(options:modalFor:modalDelegate:didEnd:contextInfo:)](quartz/ikfilterbrowserpanel/beginsheet(options:modalfor:modaldelegate:didend:contextinfo:).md)
- [finish(_:)](quartz/ikfilterbrowserpanel/finish(_:).md)
