Path: utzoo!utgpu!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucsd!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C Request Message-ID: <4001@helios.ee.lbl.gov> Date: 23 Oct 89 01:11:15 GMT References: <541@sunfs3.camex.uucp> <69099@tut.cis.ohio-state.edu> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 39 In article <69099@tut.cis.ohio-state.edu> wilson m liaw writes: >In article <541@sunfs3.camex.uucp> kent@lloyd.UUCP (Kent Borg) writes: >> >>Request for a very simple feature in Think C: >>When the resource file for a project is not available (because I have >>it open ResEdit), Think C should complain instead simply letting my >>program die. > > The thing is, THINK C doesn't know if it should look for it. I >am assuming that everytime you run a project, THINK C tries to open a file >which is called .rsrc, and if the process fails THINK C assums >that there is no rsrc file needed for this project. > Ah, but THINK C can certainly check for the existence of such a file, a la PBHGetFInfo, to see if the file exists, and is already open from another application. Other applications seem to be able to do it (including ResEdit!). THINK C should definitely be changed to work this way. While we're on the subject, how about project specific pre-processor variables? While it's great that we can check for THINK_C to see if that's the current environment, I would also like to be able to check for A4 vs. A5 relative global generation, 68020 code generation, and any arbitray thing I want! For example, I would like to be able to parallel development of code resources, apps, and da's, sharing sources whereever possible, but I can't because I generally have to do slightly differnt things depending on the code/globals generation. So, a dialog box that let's me create #define's specific to a project. Please Rich, please! ------------------------------------------------------------------------------- - Patrick Beard, Macintosh Programmer (beard@lbl.gov) - - Berkeley Systems, Inc. "..............Good day!" - Paul Harvey - -------------------------------------------------------------------------------