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

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

问题描述

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

现在有一个自述文件位于/Developer/Examples/ReadMe.rtf,说明所有示例代码都在 ADC 网站上.但是,ADC 网站似乎不包含蓝牙示例代码.

我试过谷歌搜索,但我似乎找不到任何关于如何在 Mac OS X 和 Cocoa 上使用蓝牙的好例子.有人可以帮我吗?我希望在更新到 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天全站免登陆