Re: Passcode window appears behind DeviceSelector window when application is agent
Re: Passcode window appears behind DeviceSelector window when application is agent
- Subject: Re: Passcode window appears behind DeviceSelector window when application is agent
- From: Elliot Sinyor <email@hidden>
- Date: Tue, 19 Nov 2013 17:50:51 -0500
I found a workaround to this by using:
-[IOBluetoothDeviceSelectorController beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:]
instead of -[IOBluetoothDeviceSelectorController runModal]
The passcode window now appears in the foreground as expected. I've also submitted a bug report for the runModal behaviour.
I figured I'd post my solution in case any one else runs into this in the future.
Elliot
> Date: Tue, 05 Nov 2013 11:01:09 -0500
> From: Elliot Sinyor <email@hidden>
> To: email@hidden
> Subject: Passcode window appears behind DeviceSelector window when
> application is agent
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> I have an application with a status bar icon that connects to a Bluetooth device. The application is set as an agent so that no icon appears in the dock or the application switcher.
>
> The problems is that when first pairing with a device, the passkey entry window appears behind the window that the IOBluetoothDeviceSelectorController creates. There is no indication to the user that the passkey window is waiting there unless they know to move the Device selector window. I've tried changing the frame of the window using [deviceSelector.window setFrame:...] to no avail.
>
> Setting "Application is agent" to false in the info plist is the only thing that causes it to behave as expected. Am I missing something, or is this a bug that I should report?
>
> Which leads to a second question.
>
> Is there a way to avoid the whole passkey issue while still using IOBluetoothDeviceSelectorController? The passkey for the device is always the same.
>
> I've noticed IOBluetoothPasskeyDisplay but I can't figure out how to use it in conjunction with IOBluetoothDeviceSelectorController. I'd like to avoid having to recreate the functionality of IOBluetoothDeviceSelectorController if at all possible. How does IOBluetoothPairingController fit into all this?
>
> thanks
> Elliot
>
>
> ------------------------------
>
> _______________________________________________
> Bluetooth-dev mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/bluetooth-dev
>
> End of Bluetooth-dev Digest, Vol 10, Issue 261
> **********************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden