home *** CD-ROM | disk | FTP | other *** search
- %
- % Copyright (C) Bengt Computer Graphics 1996
- % Define a new resource category using the generic
- % template
- %
- % currentglobal not /notglobal exch def
- true setglobal
- %
- % expecting to find the category name on the stack
- %
- /instancetype exch def
- /category exch def
- /Generic /Category findresource
- dup length 1 add dict copy
- dup /InstanceType instancetype put
- category exch /Category defineresource pop
- %
- false setglobal
-