Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: utzoo!utcsri!mnh From: mnh@utcsri.UUCP (Mark N. Hume) Newsgroups: net.micro.mac Subject: How does MacDraw use the PICT resource, and selecting objects? Message-ID: <791@utcsri.UUCP> Date: Thu, 21-Feb-85 14:03:53 EST Article-I.D.: utcsri.791 Posted: Thu Feb 21 14:03:53 1985 Date-Received: Thu, 21-Feb-85 14:45:23 EST Distribution: net Organization: CSRI, University of Toronto Lines: 21 I am trying to determine the format of PICT resources and how MacDraw in particular picks apart the commands therein. I would like to take a PICT resource from MacDraw and use it in a program I am writing (mainly because for now, I don't want to have to write the drawing code myself). Does MacDraw use Picture comments to determine the objects in a PICT? When MacDraw does find out the pict structure, what kind of data structure does it store the objects in? Any ideas? Another question I have is whether there is an easy way of telling what objects a user has selected on the screen. So far the only way I have thought of is by comparing the point of selection (or rectangle of selection) to every single object (actually, the rectangle enclosing the object, since for now my objects cannot overlap). Is there a more intelligent (faster/easier) way. Thanks for any help, Mark Hume -- Mark N. Hume