Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Vern Stant
Wed, 19 Aug 1992 22:38
Question: Messages from fork()ed procs??
Author: Vern Stant
Date: Wed, 19 Aug 1992 22:38
Date: Wed, 19 Aug 1992 22:38
35 lines
1516 bytes
1516 bytes
I am trying to message a text window in the parent from a child:
[ctlText setText: "GEORGE"];
[ctlScrollView display];
if(fork())
{
..
}
else
{
objc_msgSend(kText,@selector(setText:),"FREDS!!!!!!!!!!!!!!!!!!");
[ctlText setText: "FREDS!!!!!!!!!!!!!!!!!!"];
[ctlScrollView display];
...
}
GEORGE appears in the ctlText but FREDS!!!! doesn't. I have tried
both [xxx xxx: xxx] and objc_msgSend(...,...,..) ways of
doing it but, even though I know the child is started (it printf's also)
it can't get to the parent's Text object. I also get the process
exited....Window server death message in the shell I start it in.
This only kills the child. The rest of the app is o.k.
I am assuming that the child, having a different process ID,
is disconnected. Any help would be appreciated.
Thanks,
Vern
--
Vern Stant | The opinions expressed herein are
Hand Held Products, Inc.| not necessarily those of Hand
804.784.3090 voice | Held Products, Inc., and may not
804.784.3147 FAX | even be mine. Use at your own risk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads