Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Patrick Cooney
Patrick Cooney
12,216 Points

iOS Control Surface Apps (Wifi Communication)

More generally, my question is about how you connect from an iOS device to a computer over Wifi. Is it with sockets? Is there a higher level API apple provides?

Specifically I'm interested in how something like this is able to control another program.

I've tried googling this several times but don't even know what search terms to type in or what type of information or reference to look for in the docs. Could someone point me in the right direction? A "how to" tutorial would be acceptable, a "how it works" (i.e. sockets and plugins for the host app, mouse emulation, etc.) would be preferred.

Thanks.

Good question.

2 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

If you want an iOS device to connect to an Apple computer then you would have to:

  1. Create an iOS App and a Mac client
  2. The two can discover each other using Bonjour
  3. They can talk to each other using Foundation Network Services
Patrick Cooney
Patrick Cooney
12,216 Points

As always, Amit to the rescue. Thanks, Amit!

We should get him a cape.

Patrick Cooney
Patrick Cooney
12,216 Points

We have to design a superhero logo for it first.

I could see this as the next forum challenge lol.