• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IOBluetooth questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOBluetooth questions


  • Subject: IOBluetooth questions
  • From: gnat <email@hidden>
  • Date: Wed, 21 Jul 2004 15:58:36 -0400

Hello,
Anyone know of a good (or more than one) resource for how to use the IOBluetooth API in Objective-C. The main thing i'm looking for is how to find available devices without using the GUI functions (i.e. i'm working on a command line tool).
In general I have an perl/Apple Script that does the following to get info to my non-iSync compatible phone via the Bluetooth File Exchange App. I want to move the functionality to a single non-UI binary so I can cron it:

1) Check a local cache (want to read what's on the phone, but i'm going for little steps) against my iCal and save each event that hasn't already been sent to the phone as a separate file (the phone doesn't seem to like calendar files with multiple entries) as well as adjust the format.
2) Generate an apple script that:
a) Starts BT File Exchange
b) sends each file
c) quits BT File Exchange

Besides the taking over my UI issues, it also has some other issues in regards to timing and not being able to catch errors properly. So I want to write my own app to do it in the back ground. I have found examples of sending/getting information once the connection is established, but besides calls to the device chooser I haven't seen how to get the devices in an Array/Dictionary/something else. I want to do the following:

1) During setup, prompt the user to select a device(s) from those in range and save the ID(s) to a config file.
2) During a run, startup and check to see if the selected devices are in range.
a) If so, do work.
b) If not, quit.

Thanks,
-dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: IOBluetooth questions
      • From: Yann Bizeul <email@hidden>
  • Prev by Date: Re: Problems with NSTextField and attributed strings
  • Next by Date: Re: Cocoa<->Carbon troubles
  • Previous by thread: Re: Cocoa<->Carbon troubles
  • Next by thread: Re: IOBluetooth questions
  • Index(es):
    • Date
    • Thread