---
title: "begin(options:modelessDelegate:didEnd:contextInfo:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikfilterbrowserpanel/begin(options:modelessdelegate:didend:contextinfo:)"
---

# begin(options:modelessDelegate:didEnd:contextInfo:)

Displays the filter browser in a new utility window, unless the filter browser is already open.

## Declaration

```swift
func begin(options inOptions: [AnyHashable : Any]! = [:], modelessDelegate: Any!, didEnd didEndSelector: Selector!, contextInfo: UnsafeMutableRawPointer!)
```

## 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.
- `modelessDelegate`: The object that will invoke the selector didEndSelector when the filter browser session terminates.
- `didEndSelector`: The selector to invoke when the filter browser session terminates.
- `contextInfo`: Any data that must be passed as an argument to the delegate through didEndSelector after the filter browser session terminates.

## Discussion

Discussion When the filter browser session ends, didEndSelector is invoked on the modeless delegate, passing contextInfo as an argument. The selector didEndSelector must have the following signature: - (void)openPanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode  contextInfo:(void  *)contextInfo The returnCode value passed to the selector is set to NSOKButton if the user validates, or to NSCancelButton if the user cancels.

## See Also

### Displaying and Running the Panel

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