且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在iPhone&苹果电脑

更新时间:2022-10-17 22:45:27

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