Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!ukc!etive!lfcs!nick From: nick@lfcs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: Scrap Management, User Preferences Message-ID: <1833@etive.ed.ac.uk> Date: 24 Apr 89 12:49:23 GMT Sender: news@etive.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk (Nick Rothwell) Organization: LFCS Enya Admiration Society Lines: 22 I have a couple of questions, brought up by a recent project I've been putting together: (i) Scrap Management. I've implemented CUT/COPY/PASTE/CLEAR (together with UNDO and REDO for all of these... it wasn't easy...). But, I'm only interested (for now) in cutting and pasting my own private kinds of objects. So, I've done it myself, with a couple of Handles for the clipboard and such like. Is there anything wrong with this? Why should I use the scrap manager for things which aren't TEXT or PICT, and therefore don't make sense for anybody else? (ii) User preferences: what's the official sanctioned way of saving user preferences in an application? A data file in the System Folder? A resource file? The data fork of the application? I personally prefer this last option, although it won't work on shared or protected volumes. Nick. Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcvax!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Fais que ton reve soit plus long que la nuit.