🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19675

Re: Resource Creation

#19675
From: oster
Date: Tue, 29 Sep 1987 23:12
16 lines
1660 bytes
In article <1978@tekig4.TEK.COM> briand@tekig4.UUCP (Brian Diehm) writes:
>>2.  How can one create a PICT resource (graphically would be nice
>MacDraw is one way.  The Save As dialog box allows the setting of the file
>format, of which PICT is an option.  You then are creating a file with a PICT
>resource in it.

This is true, but very misleading. When you Save As PICT in MacDraw,
you create a file with a 512 byte header followed by the contents of a
PICT resource as data. To use it as a resource, you'd have to allocate
a handle, lock the handle, FSRead the data into the handle, then do an
AttachResource.  It is much, much easier to just select a piece of a
MacDraw document and hit "Copy". This puts the graphics onto the
clipboard as a PICT resource, that can be pasted into a file in
ResEdit directly, with no intermediate steps.  (If you want to do a
lot of them, just paste them to the ScrapBook, then open "ScrapBook
File" from inside ResEdit.)
Technical Details
Message-ID: <21021@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdcsvax!ucbvax!dewey.soe.berkeley.edu!oster
References: <127200006@inmet> <1978@tekig4.TEK.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdcsvax!ucbvax!dewey.soe.berkeley.edu!oster
From: oster@dewey.soe.berkeley.edu.UUCP
Newsgroups: comp.sys.mac
Subject: Re: Resource Creation
Message-ID: <21021@ucbvax.BERKELEY.EDU>
Date: Tue, 29-Sep-87 19:12:55 EDT
Article-I.D.: ucbvax.21021
Posted: Tue Sep 29 19:12:55 1987
Date-Received: Sat, 3-Oct-87 00:42:51 EDT
References: <127200006@inmet> <1978@tekig4.TEK.COM>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster)
Organization: School of Education, UC-Berkeley
Lines: 16