在iPhone&苹果电脑 [英] Send messages between iPhone & Mac

查看:170
本文介绍了在iPhone&苹果电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在我的手机上运行1个程序,模拟器,它有一个滑块和一个按钮,另一个接收程序在mac上,如Processing / Supercollider。



当按钮被按下时,我想要一个字符串, hello出现在Mac上的程序的发布窗口中,并且当滑块向上/向下移动整数(例如在0-99之间)以对应于电话上的移动时。我假设WiFi连接对于在设备之间发送消息是必不可少的。



有没有人知道我会怎么写这个 - 教程/代码示例/链接


解决方案

cocoaasyncsocket 是一个伟大的包装CFSocket和CFStream,使网络更容易。 Bonjour在 developer.apple.com 提供了大量文档


I'm fairly novice in iPhone development, but trying to create what would seem a fairly simple application.

I want to have 1 program running on my phone/simulator that has a slider and a button, and another receiving program on the mac, such as Processing/Supercollider.

When the button is pressed i want a String such as "hello" to appear in the post window of the program on the mac, and when the slider is moved up/down for an integer, say between 0-99, to correspond with the movement on the phone. I'm assuming a WiFi connection would be essential for the sending of messages between devices.

Does anyone know how I might go about writing this - tutorials/code examples/links to get me started?

Cheers

解决方案

cocoaasyncsocket is a great wrapper around CFSocket and CFStream, that makes networking much easier. Bonjour has great documentation at developer.apple.com

这篇关于在iPhone&苹果电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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