NSSocketPort/NSConnections
NSSocketPort/NSConnections
- Subject: NSSocketPort/NSConnections
- From: Dustin Mierau <email@hidden>
- Date: Thu, 27 Sep 2001 14:37:54 -0700
Thanks for the response on my dealloc question, I dunno if I
agree that my dealloc method shouldn't be called, but whatever.
Another question.
I have 2 NSSocketPorts, I want to try this distributed objects
over a network thang, it is pretty amazing =)
I setup the sockets and the connections, and everything works
great. I release the connections when done (I dont release the
NSSocketPorts I create cause I pass them to my NSConnections
with the autorelease method) in the applicationWillTerminate
notification. So it works fine, I can call methods on the served
object, but when I quit the app and run it again I get an
exception during creation NSPort timeout. I wait a minute or so
and launch the application again and it works fine.
I have a feeling I am not cleaning up the ports correctly.
Any thoughts?
Thanks,
-dustin