Access to hardware & drivers without Objective-C?

Discussion in 'Mac Programming' started by cossie, Aug 27, 2007.

  1. macrumors member

    Aug 8, 2006

    I'm interested in writing some simple applications that will let me control the bluetooth hardware in my MBP so I can communicate with software I wrote on my mobile phone.

    I've seen a few tutorials and some examples of other people's projects that are all written using Obj-C. I'm not sure if I really want to spend the time learning Obj-C (I'll probably spend time with the basics) so I'm was wondering if it's possible to still access hardware / drivers using C or C++, as I've a few years experience with both.


  2. macrumors 6502

    Dec 6, 2006
    I can guarantee you that the actual code that those examples are calling are written in C. They are most likely the Cocoa layer. There will be a much nastier lower layer written in C for the OS developers to use. Apart from that I cannot tell you where to start looking.
  3. Moderator emeritus


    Jun 15, 2000
    The only reason the examples are written in Objective-C is because it is faster to whip up a simple GUI. But often a lot of Apple's examples use Carbon. Hardware access is through IOKit which is all C-based, so you can use it just fine in a Carbon app (or through a standard CLI app).
  4. thread starter macrumors member

    Aug 8, 2006
    CLI = Command Line Interface, right?

    Thanks for the replies.

    I'll start getting familiar with the IOKit and the developer notes for Bluetooth.

Share This Page