Re: objective-c bluetooth api
Re: objective-c bluetooth api
- Subject: Re: objective-c bluetooth api
- From: Joseph Kelly <email@hidden>
- Date: Tue, 6 Dec 2005 09:07:36 -0800
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.
joe
On Dec 5, 2005, at 7:03 PM, Miguel Menchu wrote:
Hi,
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.
- Miguel.
_______________________________________________
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
_______________________________________________
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