Runs the service browser panel as a sheet on the target window.
- macOS 10.2+
NSWindow to attach the service browser panel to as a sheet.
Delegate object that gets sent the didEndSelector when the sheet modal session is finished.
Selector sent to the modalDelegate when the sheet modal session is finished.
User-definied value passed to the modalDelegate in the didEndSelector.
Returns kIOReturnSuccess if the sheet modal session was started.
This function works the same way as -[NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:]. The didEndSelector has a similar prototype as in NSApplication except that the first argument is the IOBluetoothServiceBrowserController object instead of the window: -(void)sheetDidEnd:(IOBluetoothServiceBrowserController *)controller returnCode:(int)returnCode contextInfo:(void *)contextInfo. The returnCode parameter will either be kIOBluetoothUISuccess or kIOBluetoothUIUserCancelledErr as described in -runModal.
NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.