Re: how to receive some string from iphone's app to stanalne app on mac?
Re: how to receive some string from iphone's app to stanalne app on mac?
- Subject: Re: how to receive some string from iphone's app to stanalne app on mac?
- From: Carlo Gulliani <email@hidden>
- Date: Tue, 10 Feb 2009 02:30:52 -0800 (PST)
[SOLVED]
I've found the solution: AsyncSocket class. This class helps keeping some data between 2 apps. You can find more information and to see 'how to use' on http://www.macresearch.org/cocoa-scientists-part-xxix-message i hope, it's helpful
________________________________
From: Ricky Sharp <email@hidden>
To: Carlo Gulliani <email@hidden>
Cc: cocoa-dev <email@hidden>
Sent: Monday, February 9, 2009 5:14:06 PM
Subject: Re: how to receive some string from iphone's app to stanalne app on mac?
Bonjour is just for discovery. You need to add in network code to send and receive data. Check out the PictureSharing sample code. Not sure of exact names, but there are a few samples you will ultimately need that should have PictureSharing in their name.
Sent from my iPhone
On Feb 9, 2009, at 8:08 AM, Carlo Gulliani <email@hidden> wrote:
> hi, everybody, i've 2 apps: ipone's app and app on my mac.
>
> i wanna receive some message from iphone to my mac's app.
>
> for example, my iphone's app has 2 buttons:
>
> -(IBAction) first
> {
> // here i should send message "FIRST" to mac's app
> }
>
> -(IBAction) second
> {
> // here i should send message "SECOND" to mac's app
> }
>
> i prepared buttons for mac's app with bonjour service and iphone's bonjour service. when i launch mac's app & iphone's app, i seeing that my mac's app has found iphone's app via bonjour, now i should send message, but i don't know how((
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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