site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com joe On Dec 5, 2005, at 7:03 PM, Miguel Menchu wrote: Hi, - Miguel. _______________________________________________ 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/joeman%40mac.com _______________________________________________ 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 is a wild guess, but it looks like you'll have to write an objective-C code bundle which implements the Bluetooth communications, and export a simpler api to your Javascript. For example, instead of writing (and instantiating) a BasicAddressBook class, you could come up with a BluetoothServer class which has methods to discover, open/connect, read/write, close various devices. I cannot tell from the link you provided (shame on Apple) exactly where "the code to publish a BasicAddressBook instance to JavaScript" is supposed to reside, who loads it and calls it, etc. I presume it is part of a browser plug-in, which leads to the next question, how do you make a Dashboard plug-in (I'd guess that Dashboard uses WebKit and hence has all the same plugins as Safari)? You might want to try the Dashboard-dev, Webcore-dev, and/or Objc-language mailing lists (in addition to this one) for help. I'm having some trouble writing some bluetooth code for school. I'm basically trying to write a dashboard widget to access through javascript the bluetooth api. I read the app dev. documentation here: http://developer.apple.com/documentation/AppleApplications/ Conceptual/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html#// apple_ref/doc/uid/30001215 but still I have no clue how to go about it. I located the .h header files in my powerbook and searched the files to find out if the objecti-c code was exposed to javascript, but unfortunately i couldn't find anything. ([win setValue:... forkey:@... part). My question is, is the bluetooth library already exposed to be used with javascript? If so, where are they? How can I find out how to instantiate/access it from javascript? Thanks a lot. This email sent to joeman@mac.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Joseph Kelly