Path: utzoo!attcan!uunet!husc6!cmcl2!vx2!spector From: spector@vx2.GBA.NYU.EDU (David HM Spector) Newsgroups: comp.sys.mac.programmer Subject: Re: cdev question Message-ID: <6860011@vx2.GBA.NYU.EDU> Date: 26 Jul 88 00:36:00 GMT References: <9516@dartvax.Dartmouth.EDU> Organization: New York University Lines: 27 I am note sure if the file permissions will help you any... but one other way to make sure that your cDev can access the file is to have the both the cdev and the da close their common file whenever they recieve and deactivate events and reopen it when they're brought to the front againt. This is guarenteed to work because your da and the control panel cannot both be frontmost at the same time..... Deactivate events are good times to save data files and configurations anyway.. you never know what some obnoxious application is going to do to you when you're not looking. :-) The only problem is that you'll have to "suspend" whatever you're doing when you get deactivated... unless you can come up with either a clever semaphore or perhaps just trying to re-open the file every now and then while you're not front most, and if you get a file locked error then your cDev must be awake and accessing the file. jsut a few Q&D ideas...hope that helps a little... _David ------------------------------------------------------------------------------- David HM Spector New York University Senior Systems Programmer Graduate School of Business Arpa: SPECTOR@GBA.NYU.EDU Academic Computing Center UUCP:...!{allegra,rocky,harvard}!cmcl2!spector 90 Trinity Place, Rm C-4 HamRadio: N2BCA MCIMail: DSpector New York, New York 10006 AppleLink: D1161 CompuServe: 71260,1410 (212) 285-6080 "What computer puts out work like this?" "Hire us and we'll tell you." XYZZYGLORP