Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!psueea!jove.cs.pdx.edu!bartonr From: bartonr@jove.cs.pdx.edu (Robert Barton) Newsgroups: comp.sys.amiga Subject: SetPrefs() Message-ID: <1860@psueea.UUCP> Date: 25 Oct 89 17:22:17 GMT Sender: news@psueea.UUCP Reply-To: bartonr@jove.cs.pdx.edu (Robert Barton) Organization: Dept. of Computer Science, Portland State University; Portland OR Lines: 27 eric@cbmvax.UUCP (Eric Cotton) writes: >In article <165@ra.abo.fi> rosenber@ra.abo.fi (Robin Rosenberg INF) writes: >> Back to preferences: The RKM says you shouldn't do SetPrefs() since that is >>pulling the rug from beneath the users feet. It doesn't say it IS pulling the rug out, it says "You should never use this routine to make your programming or design job easier at the cost of yanking the rug out from beneath the user." It sounds like they anticipated that there would be times when you might need to use it. > Agreed on all counts. SetPrefs() was originally intended to be Intuition > private. Notice that there is no mention of this function in the Addison- > Wesley AMIGA Intuition Reference Manual. Since it *is* documented in the > ROM KERNEL manual, the secrets out. SetPrefs() is covered on page C-2 of the Intuition manual. > I would, however, recommend that you avoid using SetPrefs() for the reasons > Robin gave above. All you forward-thinkers (1.4) might want to avoid the > function too (hint, hint). Okay, what if your system is set up for a 640-pixel-wide Workbench screen, and your viewer program wants to display a 704-pixel-wide picture on a custom screen, correctly centered. You need to move the Intuition View to the left. Since poking IntuitionBase is a no-no, you have to use SetPrefs(). Is there going to be a new way to do this in 1.4?