> Ah, interesting. I missed that in the docs. It still seems bad to me that > the file handle will actually dealloc without closing its associated file > descriptor, but perhaps you are right that that is the documented behavior. > I'll just stop worrying about it and move on, then. Thanks!
NSPipe and its NSFileHandles work as you expect: when the read/write file handles created via NSPipe are deallocated, the underlying descriptors are closed. Along with Jean-Daniel Dupas, I created a simple test case and it behaves as expected. (I've also been using NSPipe/NSFileHandle extensively for years and have never come across anything like you described.) I'd be interested in seeing a test case showing the incorrect behavior. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com