Re: Distributed Objects - Am I missing something?
Re: Distributed Objects - Am I missing something?
- Subject: Re: Distributed Objects - Am I missing something?
- From: Brian Webster <email@hidden>
- Date: Wed, 24 Oct 2001 20:34:46 -0500
Don't know right off the bat what might be wrong, but I have one
idea. How/when exactly is your server object being created? Is
this an NSApplication-based app? The reason I ask is that in
order for NSConnection to work properly, there needs to be an
NSRunLoop going so that it can handle the messages passed to the
connection's ports. If you don't use NSApplication, then you
need to start the run loop yourself. If you are using
NSApplication, then you might want to register your object in
the -applicationDidFinishLaunching: delegate method instead of
-init, just to make sure that the app's run loop is up and
running before you register.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster