Cocoa(Objective-C)的蓝牙示例代码 [英] Bluetooth Example Code for Cocoa (Objective-C)

查看:460
本文介绍了Cocoa(Objective-C)的蓝牙示例代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用蓝牙API在Cocoa中设置与蓝牙设备的连接的示例代码。 Apple曾经在/ Developer / Examples / Bluetooth文件夹下的XCode工具包中包含这种类型的示例代码,但在下载最新版本的XCode(3.2.1)后,这些蓝牙示例已从该目录中删除。 p>

现在有一个位于/Developer/Examples/ReadMe.rtf的自述文件,它解释了所有示例代码都在ADC网站上。但是,ADC网站似乎不包括蓝牙示例代码。



我试过谷歌搜索,但我似乎找不到任何好的例子,如何得到蓝牙去Mac OS X与可可。有人可以帮助我吗?我希望我已经复制这些示例到备份位置,然后更新到XCode 3.2.1!诅咒,苹果!

解决方案

你可以做我做的:下载XCode的旧副本并使用和平主义者提取您所需要的内容。


I'm looking for example code for setting up a connection to a bluetooth device using the Bluetooth API in Cocoa. Apple used to include this type of example code in the XCode tools package under the /Developer/Examples/Bluetooth folder, but upon downloading the latest version of XCode (3.2.1), these bluetooth examples have been removed from that directory.

There is now a readme file located at /Developer/Examples/ReadMe.rtf that explains that all example code is on the ADC website. However, it seems that the ADC website does NOT include bluetooth sample code.

I've tried googling, but I can't seem to find any good examples for how to get bluetooth going on Mac OS X with Cocoa. Can anybody help me out? I wish I had copied those examples to a backup location before updating to XCode 3.2.1! Curses, Apple! Why have you taken them from me?

解决方案

You can do what I've done: download an old copy of XCode and use Pacifist to extract what you need.

这篇关于Cocoa(Objective-C)的蓝牙示例代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆