Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMessagePort/NSSocketPort & Distributed Objects [Solved]



James Bucanek <mailto:email@hidden> wrote (Thursday, October 18, 2007 10:09 PM -0700):
It appears that NSSocketPort does not, however, destroy the
socket/pipe file once the NSSocketPort is invalidated. You'll have to
do this yourself. Currently, I'm adding code to catch the port's
NSPortDidBecomeInvalidNotification and delete the socket file.

I can now confirm that this is true. You must delete the socket file created by NSSocketPort once you are done with the connection.


Also, [NSConnection invalidate'] does not (immediately) invalidate the port, so it never fires the NSPortDidBecomeInvalidNotification. At least not in my test program, that terminates the instant it invalidates the connection. To get that notification to fire, I had to call [[connection receivePort] invalidate].

--
James Bucanek

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: NSMessagePort/NSSocketPort & Distributed Objects [Solved] (From: James Bucanek <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.