Re: IOBluetoothPairingController asserting?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com This is similar to a still-open Radar I had filed on 9/8/09, "IOBluetoothDeviceSelectorController calls unimplemented selector when pairing" (rdar://7205872).
When using IOBluetoothDeviceSelectorController's runModal function to select and pair a remote Bluetooth service, the framework is throwing an exception
-[NSTextField length]: unrecognized selector sent to instance 0x113222200
That was on 10.6 and is easily reproducible using Bluetooth Explorer.
Launch Console.app Launch Bluetooth Explorer, select Utilities->Test Bluetooth UI Panels->Pairing Choose a device which would expect a passcode to be entered (I tried with multiple Windows Mobile devices, which are the only ones I had handy) Enter a passcode. Enter the passcode again (two different entry dialogs appear) See error in console
Does Bluetooth Explorer reveal something similar to what is happening to your code? It beats writing a sample app. Good luck. b On Aug 5, 2010, at 12:22 PM, Dave MacLachlan wrote:
Hey all,
I'm trying to pair up a device on 10.5.8 with IOBluetoothPairingController.
My code is pretty simple
IOBluetoothSDPUUID *serviceUUID = [[IOBluetoothSDPUUID alloc] initWithBytes:kServiceUUID length:sizeof(kServiceUUID)]; IOBluetoothPairingController *controller = [IOBluetoothPairingController pairingController]; [controller addAllowedUUID:serviceUUID]; [controller runModal];
It displays a list of devices, and when I a device that has the service I get this in the console:
2010-08-05 08:51:43.869 MyApp[31611:813] *** Assertion failure in -[NSTextFieldCell _objectValue:forString:errorDescription:], /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSCell.m:1338
and the dialog basically hangs (pair button is disabled, prompt says "Connecting to the device..."). I can hit cancel, but that doesn't really help.
The backtrace looks something like this: #0 0x901571c6 in NSLog () #1 0x901ece8f in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] () #2 0x916170bd in -[NSCell _objectValue:forString:errorDescription:] () #3 0x91616fdf in -[NSCell _objectValue:forString:] () #4 0x91616f31 in -[NSCell setStringValue:] () #5 0x9169c372 in -[NSControl setStringValue:] () #6 0x00039676 in -[IOBluetoothConcretePairingController startDevicePairing:] () #7 0x00041293 in -[IOBluetoothConcreteDeviceController sdpQueryComplete:status:] () #8 0x00039526 in -[IOBluetoothConcretePairingController sdpQueryComplete:status:] () #9 0x000c5f53 in -[SDPQueryCallbackDispatcher sdpQueryComplete:status:] () #10 0x947bf91d in __invoking___ () #11 0x947bf308 in -[NSInvocation invoke] () #12 0x947bf3d8 in -[NSInvocation invokeWithTarget:] () #13 0x947bf84a in ___forwarding___ () #14 0x947bf8b2 in __forwarding_prep_0___ () #15 0x947bf91d in __invoking___ () #16 0x947bf308 in -[NSInvocation invoke] () #17 0x901173f4 in -[NSConnection dispatchInvocation:] () #18 0x901153a7 in -[NSConnection handleRequest:sequence:] () #19 0x90114bed in -[NSConnection handlePortCoder:] () #20 0x9011471e in -[NSConcretePortCoder dispatch] () #21 0x90113e83 in __NSFireMachPort () #22 0x9471bff5 in __CFMachPortPerform () #23 0x947406b8 in CFRunLoopRunSpecific () #24 0x94740aa8 in CFRunLoopRunInMode () #25 0x97a702ac in RunCurrentEventLoopInMode () #26 0x97a700c5 in ReceiveNextEventCommon () #27 0x97a6ff39 in BlockUntilNextEventMatchingListInMode () #28 0x9162a6d5 in _DPSNextEvent () #29 0x91629f88 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #30 0x9186738d in -[NSApplication _realDoModalLoop:peek:] () #31 0x91861acb in -[NSApplication runModalForWindow:] () #32 0x0003eff2 in -[IOBluetoothConcreteDeviceController runModal:] () #33 0x00039248 in -[IOBluetoothConcretePairingController runModal:] () #34 0x0003eef4 in -[IOBluetoothConcreteDeviceController runModal] ()
What am I missing? This seems like a pretty simple case.
Any help would be greatly appreciated.
Cheers, Dave _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/bcriscuolo%40markspace....
This email sent to bcriscuolo@markspace.com
******************** Brian M. Criscuolo Lead Software Engineer Mark/Space, Inc. bcriscuolo@markspace.com <http://www.markspace.com> Synchronize: KIN | Android | Palm Prē | iPhone | BlackBerry | Windows Mobile | Palm OS | Symbian | PSP | Macintosh | Windows _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian M. Criscuolo