• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie networking troubles...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie networking troubles...


  • Subject: Newbie networking troubles...
  • From: Matthew Broms <email@hidden>
  • Date: Mon, 25 Jul 2005 17:06:43 -0400

I¹ve been struggling with implementing networking in my app for a while now.
I¹ve gotten part of the way there after dissecting the Picture Browser
example and Mini-message examples provided by Apple.  So far my app will
make a Bonjour connection as a client OR publish a Bonjour service as a
server.  But beyond making these various connections, I don¹t understand
what step is next to pass (or call) objects between them.

Utilizing Bonjour, I simply want to be able to send a string (NSString) or
integer between a client and a server.  In the Picture Browser example, I
see them making a connection, sending notification once a successful
connection is established, then sending a file, and sending back a
notification once it¹s been read by the remote app.  My app has a matrix and
all I want to do is send a string or integer indicating which cell of the
matrix was clicked on to the remote app to then process it over there.  So I
don¹t need NSFileHandle.  But NSFileHandle seems to have built in
notification delegates and I can¹t see anything synonymous to this for other
object types (array, string, int, etc).  The MiniMessage examples
(client/server) don¹t use NSNetServer, but do use NSConnection and
prototypes (prototypes are a bit perplexing to this newbie unfortunately).
So do I need to figure out prototypes or am I missing something simpler?

Any suggestions, examples, or guidance would be greatly appreciated.  Thanks
in advance.

Matt
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Questions regarding WebView
  • Next by Date: Re: App icon in Keychain panels?
  • Previous by thread: Re: _openRecentDocument undocumented?
  • Next by thread: A newly alloc] init]ed NSURLConnection has retainCount = 3 ??
  • Index(es):
    • Date
    • Thread