Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!apple.com!casseres From: casseres@apple.com (David Casseres) Newsgroups: comp.sys.mac.system Subject: Re: Printing questions... Message-ID: <11970@goofy.Apple.COM> Date: 4 Feb 91 18:38:03 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 20 References: <1991Jan31.160516.19607@cpsc.ucalgary.ca> In article <1991Jan31.160516.19607@cpsc.ucalgary.ca> wieser@fsd.cpsc.ucalgary.ca (Bernhard Wieser) writes: > A PREC is a print record stored with the driver. EACH DRIVER USES > DIFFERENT FIELDS IN THE PREC FOR DIFFERENT THINGS. There is no > uniformity. Well, there's some, as documented in Inside Mac. But the basic point is correct. The PREC resource type is reserved for use by printing drivers, so if the application has them too the driver will see them and may become confused. However, nothing prevents you from storing print records as resources with some other, non-reserved type. Drivers remember previously used print records in PREC resources, but you have no way of knowing exactly when a given PREC in the driver is valid and consistent, so don't try to use the driver's PRECs. Store print records yourself when you want to remember them; the best way to store them depends on exactly what you're trying to do. Always get the driver to validate a stored print record before you use it. David Casseres Exclaimer: Hey!