Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!fornax!mcdonald From: mcdonald@fornax.UUCP (Ken Mcdonald) Newsgroups: comp.sys.mac.programmer Subject: Re: I hate it when Apple does this . . . Summary: My volume doesn't say this Message-ID: <422@fornax.UUCP> Date: 11 Mar 90 19:42:30 GMT References: <420@fornax.UUCP> <88@ndcvb.cc.nd.edu> Distribution: na Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 21 In article <88@ndcvb.cc.nd.edu>, dierks@ndcvb.cc.nd.edu (Timothy Dierks) writes: > > Inside Mac, page I-405, says that the handle returned by GetDItem for an > editText item is a handle to the current text. If you just want to work with > the current item, there is a textH member in a dialog record that is a > handle to it. > > Tim Dierks > go Irish My IM doesn't say this. (Different editions, I guess.) More particularly, it specifically states that to extract or set the text in a statText or editText item, one should pass the handle produced by GetDItem to GetIText or SetIText. This is what made me think that the handle returned is not a simple handle to a string--if it were, why the need for SetIText/GetI Text? My original comment still stands...I hate it when Apple does this! :-) Ken McDonald mcdonald@cs.sfu.ca