[comp.sys.mac.programmer] draw program/data structures

housen@ssc-vax.UUCP (Kevin Housen) (06/15/89)

  I am in the process of writing a LSP program, part of which will
incorporate features found in any standard drawing program (such
as MacDraw) - which operates on objects rather than bit images.
The basic requirements are to be able to have several windows
open and create/modify standard objects - like rects, arcs, polylines
etc. 
  My question is, what is a reasonable data structure to use?  Do
programs like MacDraw keep each object in a separate relocatable
block and then maintain a linked list?  If so, doesnt significant
memory-manager overhead pile up if you have a large number of
objects (say, several thousand per window)?  Also, how do you
know how many times to call MoreMasters when you have no idea
how many objects will be created?  Any thoughts/help/hints
would be appreciated...

Kevin Housen