Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!rutgers!cbmvax!eric From: eric@cbmvax.UUCP (Eric Cotton) Newsgroups: comp.sys.amiga Subject: Re: SetPrefs() Message-ID: <8283@cbmvax.UUCP> Date: 26 Oct 89 14:22:03 GMT References: <1860@psueea.UUCP> Reply-To: eric@cbmvax.UUCP (Eric Cotton) Organization: Commodore Technology, West Chester, PA Lines: 44 In article <1860@psueea.UUCP> bartonr@jove.cs.pdx.edu (Robert Barton) writes: > > 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. Sure, I'll buy that. Applications for which it would be appropriate to call SetPrefs() would include Preferences replacement programs (PRP :-). I've seen a few PD Prefs programs about. With these there is no "yanking the rug out from beneath the user." >> 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 stand corrected. Note all the warnings and cautions in that chapter. In my opinion the only acceptable application use of SetPrefs() is for Prefs editor(s). >> 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? You betcha! -- Eric Cotton Commodore-Amiga (215) 431-9100 1200 Wilson Drive {uunet|pyramid|rutgers}!cbmvax!eric West Chester, PA 19380 "I don't find this stuff amusing anymore."