yes, thanks, i have seen this example. but maybe you know how to add some kind 
of listener, which will listen when data is changed? 'coz in example i should 
select once again service's name for viewing new data



________________________________
From: Ricky Sharp <rsh...@mac.com>
To: Carlo Gulliani <carlogulli...@yahoo.com>
Cc: cocoa-dev <cocoa-dev@lists.apple.com>
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 <carlogulli...@yahoo.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/rsharp%40mac.com
> 
> This email sent to rsh...@mac.com



      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to