Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!ads.com!killer!usenet From: anders@verity.com (Anders Wallgren) Newsgroups: comp.sys.mac.system Subject: Re: Why are prefs put in files, not resources? Message-ID: <1991Jan10.062215.22248@verity.com> Date: 10 Jan 91 06:22:15 GMT References: <1991Jan10.044428.6108@spool.cs.wisc.edu> Sender: usenet@verity.com (USENET News) Reply-To: anders@verity.com (Anders Wallgren) Organization: Verity, Inc., Mountain View, CA Lines: 17 In-Reply-To: tonyrich@titanic.cs.wisc.edu (Anthony Rich) In article <1991Jan10.044428.6108@spool.cs.wisc.edu>, tonyrich@titanic (Anthony Rich) writes: >If a program allows user-preference settings to be saved, it usually >creates one or more "preferences" or "settings" files in the System Folder. >Why aren't the preferences stored in a resource within the program itself, >instead (say, in a PREF resource)? > >Is there some compelling reason why that would be a bad thing to do? > Yes. What if you want to put it on a file server and have multiple users use it simultaneously? Even though this could be done with some clever programming, the mac only supports one writer on a resource fork at once. Also, it may not be desirable to leave the application in a world-writable state all the time. anders