Sending archived objects to a child process via NSPipe
Sending archived objects to a child process via NSPipe
- Subject: Sending archived objects to a child process via NSPipe
- From: Christian Ziegler <email@hidden>
- Date: Thu, 14 Jan 2010 20:11:58 +0100
Hi all!
It is probably simple, but I can't figure it out atm. I want to send an archived object through an NSPipe to a child process. As long as there is only a single object in the pipe at a given time the receiver can unarchive the object properly. However, once I send another object to the pipe, unarchiving raises the error "uncomprehensible archive". I played around with all three read methods but nothing worked. How can I distinguish between several objects in the pipe? Maybe I can write an EOF indicator to the pipe somehow?
Cheers,
Chris
_______________________________________________
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