Displays the filter browser in a sheet—that is, a dialog that is attached to its parent window and must be dismissed by the user.
SDK
- macOS 10.5+
Framework
- Quartz
Declaration
- (void)beginSheetWithOptions:(NSDictionary *)inOptions modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo;
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 Filter Browser Option Keys and the constant
IKUISize
.Flavor modalForWindow
The parent window for the dialog.
modalDelegate
The object that will invoke the selector
did
when the filter browser session terminates.End Selector 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
did
after the filter browser session terminates.End Selector
Discussion
When the filter browser session ends, did
is invoked on the modeless delegate, passing context
as an argument. The selector did
must have the following signature:
- (void)open
The return
value passed to the selector is set to NSOKButton
if the user validates, or to NSCancel
if the user cancels.