home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!harajuku.tjp.washington.edu!jonwd
- From: Jon Wiederspan <jonwd@uwtc.washington.edu>
- Newsgroups: comp.sys.mac.hypercard
- Subject: SuperCard and XCMD's in resource fork
- Date: 25 Jan 1993 16:26:07 GMT
- Organization: Technical Japanese Program
- Lines: 53
- Distribution: world
- Message-ID: <1k14avINNk6d@shelley.u.washington.edu>
- NNTP-Posting-Host: harajuku.tjp.washington.edu
- X-UserAgent: Nuntius v1.1.1d16
- X-XXMessage-ID: <A78952DB3901CA3F@harajuku.tjp.washington.edu>
- X-XXDate: Mon, 25 Jan 93 16:18:35 GMT
-
- >Jon,
- >I read your note that certain xcmds had to be in the resource fork of the
- >supercard project to work. Could you please explain a little more .....
- is
- >there anything additional to be done. I tried putting an xcmd into the
- resource
- >fork ......... is there some other way to reference this xcmd in the
- script ??
- >Please post the answer to the hypercard news group or email me at
- >rbj@decoy.cc.bellcore.com
- >Thanks,
- >Ralph.
-
- The details on this are in the Technical Notes which accompany SuperCard.
- TN #8: BEING RESOURCEFUL:
-
- "Where they break --
-
- Most of the problems that occur are in external routines that are not
- 'encapsulated'. This means that they are part of a milti-resource
- package that expects all the resources in the group to be in the file's
- resource fork. To make them operate correctly in SuperCard, it is
- necessary to determine which resources are referred to directly by
- SuperCard and make sure they exist as project resources. The remainder
- must exist in the resource fork. For example, say two XFCN's, Fun1 and
- Fun2, are in a project. Fun1 is called directly in a script, but Fun2 is
- only called internally by Fun1 and never shows up in a script. In this
- case, Fun1 must be a project resource and Fun2 must be a standard
- resource. "
-
- Thus, any XFCN which is called from a script must be located in the
- project resources (data fork), and any that are referred to internally
- must be in the standard resources (resource fork).
-
- "Language Extensions --
-
- There is an addition to the OPEN and CLOSE commands within SuperTalk,
- namely OPEN RESOURCES and CLOSE RESOURCES. This lets you put standard
- resources into the resource fork of a SuperCard project and have them
- seen by the Resource Manager. It is crucial to understand how the
- Resource Manager searches files when multiple projects are opened up
- along with their resource forks. For a discussion of this, please
- reference INSIDE MACINTOSH VOLUME I, CHAPTER 5, 'THE RESOURCE MANAGER'.
- These commands should be left to the advanced users."
-
- These commands solve the problem of an XFCN which needs both to be called
- from a script and to be located in a resource fork.
-
- SuperCard has functions for moving resources between the data and
- resource forks, and for enumerating resources. These are also explained
- in TN #8.
-
- Jon Wiederspan
-