• 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
Does NSDistantObject works over network ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does NSDistantObject works over network ?


  • Subject: Does NSDistantObject works over network ?
  • From: "john chen" <email@hidden>
  • Date: Tue, 5 Feb 2008 12:31:31 -0600

Hi all,

Does anyone know if the sample code in the link
http://cocoadevcentral.com/articles/000062.php  will work over a network?  I
tried to use the code, but when I put the serverName = @"localhost", or
using ip address for the serverName like serverName = @"192.168.1.100", the
m_server will become nil.


In my test, it  only works when I put the serverName = nil in the line


   m_server = [NSConnection

rootProxyForConnectionWithRegisteredName:@"svr"

host:serverName];


I was wondering if NSDistributeObject can work over netowrk?  Do we have to
use NSSocketPort ?



Any input is appreciated,


John
_______________________________________________

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

  • Follow-Ups:
    • Re: Does NSDistantObject works over network ?
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: ScreenSaverView and Core Animation
  • Next by Date: Re: Does NSDistantObject works over network ?
  • Previous by thread: Converting RTFD to HTML
  • Next by thread: Re: Does NSDistantObject works over network ?
  • Index(es):
    • Date
    • Thread