Re: iPhone and OS X apps question
Re: iPhone and OS X apps question
- Subject: Re: iPhone and OS X apps question
- From: "Eric E. Dolecki" <email@hidden>
- Date: Thu, 11 Feb 2010 12:05:29 -0500
To clarify what I'm looking to do...
I have a wifi router attached to the back of my Mac. My Touch connects to
that router.
I'd like to run an app on the Touch and an app on the Mac. I'd like to be
able to send a simple string from either app to the other and acknowledge
receipt of that.
Swipe on the Touch, the Mac app's UI displays "got the swipe" - and press a
button or something on the Mac and it tells the Touch app "got the button"
Once I get communication going, I plan on making the behaviors more
interesting. ASAP as far as timing goes. It's not for a real world product,
just prototyping for an idea.
I have no experience with Bonjour or sockets on this platform... could I
open sockets in each app and then have them talk that way? If yes, is there
sample code someplace that basically does this?
The Touch app could talk to a Flash app running on the Mac too - doesn't
need to be a OS X application.
Eric
On Thu, Feb 11, 2010 at 11:47 AM, Ricky Sharp <email@hidden> wrote:
> I would begin with Apple's picture-sharing sample code. I think that sample
> has two parts - server and client. Ther is also an iPhone sample dealing
> with locating Bonjour services.
>
> Basically Bonjour is used to have the server (Mac app) and client (iPhone)
> discover each other. Then use whatever networking protocol you want to send
> data.
>
> This setup works extremely well in the simulator. When working with real
> hardware you will need to connect it (and your Mac) to the same wifi
> network. There is currently no public APIs to talk to a docked iPhone OS
> device.
>
> Sent from my iPhone
>
>
> On Feb 11, 2010, at 10:29 AM, "Eric E. Dolecki" <email@hidden>
> wrote:
>
> I am looking at prototyping something and would like an iPhone app to be
>> able to talk with a desktop OS X app. Do something on the iPhone app, it's
>> reflected in the OS X application. And vice-versa. Where might I start for
>> a
>> project like this?
>>
>> Eric
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>
--
http://ericd.net
Interactive design and development
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden