Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!sdd.hp.com!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!dmmg1176 From: dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) Newsgroups: comp.sys.mac.programmer Subject: Re: Get Text from a Dialog Message-ID: <1991Feb11.212221.16204@ux1.cso.uiuc.edu> Date: 11 Feb 91 21:22:21 GMT References: <1991Feb8.204416.390@ux1.cso.uiuc.edu> <1991Feb10.163404.17318@ux1.cso.uiuc.edu> <1991Feb11.034108.2882@ux1.cso.uiuc.edu> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 29 dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) writes: >As I said I am no longer getting the bus error, but I still can't get >the text. GetDItem works fine and gives me a pointer to the editText >item. I can then use GetIText, but the text that it returns is the >empty string. I can also use SetIText; if I follow that with a >GetIText, I can retrieve the text I just set it with. However, I >cannot get the text that I type into the editText item in the dialog >box. How can I do that? >By the way, I can use GetIText to successfully retrieve the Text in a >staticText item, just not the text typed into an editText item. Well, I've gotten lots of code samples from people, and none of them solve my problem. I went into ResEdit and set the default text of the editText item. Now, no matter what I type in the editText item, GetIText returns that default string. The problem must be with the way I am interacting with Dialog Box Class Library that I got off the net. I am going to scrap that and write the code myself (with a lot of help from the Mac Programming Primer) to deal with the dialog. Thanks to those who sent me responses. I'm sure I'll use them when I rewrite my code. -- David M. Marcovitz | internet: marcovitz@uiuc.edu Computer-based Education Research Lab | dmmg1176@uxa.cso.uiuc.edu University of Illinois | novanet: marco / cca / cerl