Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!claris!UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW & resources Message-ID: <0B01FFFB.elrctm@outpost.UUCP> Date: 2 May 91 21:27:47 GMT Reply-To: peirce@outpost.UUCP (Michael Peirce) Organization: Peirce Software Lines: 31 X-Mailer: uAccess - Mac Release: 1.1.b3 In article <1991May2.093409.26742@dcs.glasgow.ac.uk>, edwardsc@dcs.glasgow.ac.uk (Chris Edwards) writes: > > With MPW, one normally uses Rez to compile text resources. However, I can't see > how to make it use precompiled resources. > > Can anyone help ? There are two types of include directives in Rez: include and #include. The #include is used to include other .r files, i.e. text. The include is used to include resources. For example: include "INIT File" 'INIT' (0); Will grab the INIT resource with ID = 0 from the "INIT File" file. include "INIT File" 'INIT'; Will grab *all* the INIT reosurces from the file. include "INIT File"; Will grab *all* the resource from the file. -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE