home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!kithrup!stanford.edu!ames!haven.umd.edu!darwin.sura.net!uvaarpa!clem!news
- From: vls@cube.handheld.com (Vern Stant)
- Subject: Question: Messages from fork()ed procs??
- Message-ID: <1992Aug19.223812.15159@cube.handheld.com>
- Sender: news@cube.handheld.com
- Nntp-Posting-Host: cube
- Organization: Hand Held Products, Inc.
- Date: Wed, 19 Aug 1992 22:38:12 GMT
- Lines: 35
-
- 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
-