Re: Bluetooth Control
Re: Bluetooth Control
- Subject: Re: Bluetooth Control
- From: Andrew James <email@hidden>
- Date: Tue, 10 Jul 2007 19:50:18 +0930
Hi,
Im actually referring to the receiver its self, i want to be able to
turn bluetooth on and off, just like the menu bar item
Kind Regards,
Andrew James
MultiAlarm Developer
InsomniaX Developer
WiFiScriptor Developer
Utility Lock Developer
SyncBar Developer
Project Orion Leader
Kings LAN Manager
Custom-X Manager
Skype: semaja2
Google Talk: email@hidden
Email: email@hidden
AIM: multialarm
ICQ: 483132804
MSN: email@hidden
Yahoo: email@hidden
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and
may be
privileged. It is intended for the addressee(s) only. Access to this
e-mail by
anyone else is unauthorised and may be unlawful.
If you are not an addressee, please inform the sender immediately.
E-mail messages can be intercepted, corrupted, lost or contain viruses.
The sender does not accept liability for any errors or omissions in the
contents of this message which arise during e-mail transmission.
On 10/07/2007, at 7:47 PM, Jacob Engstrand wrote:
Yes, BT docs are not the best...
If you by "enabled" mean to check if BT is available at all, you
can start by calling
IOBluetoothLocalDeviceAvailable()
If you by "enabled" mean to check if there are any paired BT
devices, you can try calling
IOBluetoothPairedDevices() or IOBluetoothFavoriteDevices()
If you by "enabled" mean to check if there are any paired BT
devices near your computer that also have BT enabled, you can try
looping over the paired devices and calling
-openConnection
Hope this helps.
jak
2 jul 2007 kl. 05.34 skrev Andrew James:
I have been looking around on google and such, but can not find
any code relating to controlling the bluetooth device.
I can find code to program for bluetooth, but all im looking for
is a way to get its state(enabled/disabled), and change its state.
Any ideas?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden