home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / skel.res < prev    next >
Text File  |  1985-03-13  |  7KB  |  306 lines

  1.  
  2. *  SkelR -- Resource definition file for small skeleton application
  3. *                Written by Steve Maker
  4. * Tell RMAKER what to name the resource file
  5. Skel.Rsrc
  6. * Version data for the finder
  7. *    Our signature is "SKEL"
  8. *    res. ID = 0, by convention
  9. *    finder version data
  10. type SKEL = STR
  11.   ,0
  12.   Skel 2.2 -- Mar 6, 1985
  13. * Read application code from this file
  14. *   filename, ID = 0 for first code
  15. Type CODE
  16. SkelL,0
  17. * Menus
  18. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  19. *   menu title: an Apple symbol (in hex) for the Apple menu.
  20. *   menu entries, one per line. ( means it's initially disabled.
  21. *   An entry of  (-  means a disabled line of dashes.
  22. *   A trailing /Q means a command-key equivalent.
  23. *   blank line at end of menu.
  24. Type MENU
  25.   ,1(4)
  26.   \14
  27.     About Skel
  28.     (-
  29. Type MENU
  30.   ,2(4)
  31.   File
  32.     Rattle
  33.     Frighten
  34.     (-
  35.     Quit/Q
  36. * A Window template
  37. *   ID,(4 => pre-load the resource; 32 => purgeable)
  38. *    title
  39. *    BoundsRect (global Top, Left, Bottom, Right): where it appears on the screen
  40. *    Vis NoGo: it's visible, but has no close box
  41. *    ProcId: this is a standard type of window
  42. *    Refcon, for program's use.  Skel doesn't use it.
  43. Type WIND
  44.   ,260(36)
  45.   A Skeleton Application
  46.   85 128 256 384
  47.   Visible NoGoAway
  48.   0
  49.   0
  50. * Strings (kept here for ease of change)
  51. *   ID,(4 => pre-load the resource)
  52. * A string for "About Skel"
  53. * Rattle string
  54. * Frighten String
  55. type STR
  56.    ,1(4)
  57.                 Skel 2.2, by Steve Maker on March 6, 1985.
  58.    ,2(4)
  59.                         Too tired to Rattle them bones.
  60.    ,3(4)
  61.                                                 Boo!
  62. * dialog box for Report
  63. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  64. *   BoundsRect(global: TLBR)
  65. *   vis., window type is modal dialog, has no close box, unused user vbl
  66. *   res. ID of item list
  67. *   title
  68. Type DLOG
  69.   ,257(4)
  70.   80 20 131 492
  71.   Visible 1 NoGoAway 0
  72.   257
  73. Report Box
  74. * dialog item list for Report
  75. *   ID (4 => pre-loaded; 32 => purgeable - it should always be purgeable.)
  76. *   # Items
  77. *   the first item:
  78. *      a Button you can select
  79. *      display rect (local coords)
  80. *      title
  81. *   the second item:
  82. *     Static text, disabled (i.e. can't select it)
  83. *     display rect
  84. *     text to be set by ParamText
  85. Type DITL
  86.   ,257(36)
  87.   2
  88.     BtnItem Enabled
  89.     25 186 46 286
  90. OK
  91.     StatText Disabled
  92.     5 25 20 450
  93. ^0
  94. ****************************************************************************
  95. ****        This section contains information for the Finder;           ****
  96. ****     the program SKEL never accesses this information directly.     ****
  97. ****        The entire section can be omitted from the first versions   ****
  98. ****     of a program (you must then set the application's type to      ****
  99. ****     APPL, the creator to ????, and don't set the bundle bit);      ****
  100. ****     the default application icon will be used.                     ****
  101. ****        For more info, read "Putting together a Mac Application"    ****
  102. ****     and "The Structure of a Mac Application".                      ****
  103. *   To make the finder show your application's special icon on the desktop,
  104. *   make documents of your type show their icons, make an
  105. *   application start when a document is opened,
  106. *   and move all files associated with your application
  107. *   when a copy is done, you must:
  108. *       For documents of new types:
  109. *             - set the document's type to the new type (here BONE)
  110. *               (often the program that creates them will do this)
  111. *             - if you want the application to start when a document file
  112. *               is opened, set the file's creator to the signature of
  113. *               the application, here SKEL; otherwise, to ????.
  114. *       For the application:
  115. *             - set the application's type to APPL ("it's an application")
  116. *             - set the creator to its signature, here SKEL
  117. *             - set the bundle bit. This tells the finder that it should read
  118. *               this info from the SKEL resource file and use it when displaying
  119. *               SKEL's icon.
  120. *   If you use SendOne, these items will have to be set with SetFile the first
  121. *   time, and then not again; if you use MacCom, they are set every time
  122. *   (usually in the exec file).
  123. *   If you change the icon, the change may not have effect on the desktop,
  124. *   until you reboot with the command and option keys held down.  This tells
  125. *   the Finder to reconstruct the desktop; the correct icons will be displayed,
  126. *   but all folders will be lost.
  127. * a Bundle: contains references to other finder info, (below)
  128. *   ID (32 => purgeable)
  129. *   Bundle owner: SKEL (our signature), Res ID of version data = 0
  130. *   # of types in bundle = 2: ICN# and FREF
  131. *   "ICN#" (means icon list), # of icon resources in bndl = 2
  132. *   local ID 0 maps to global ID 128 (the FREF uses a local ID, to refer to
  133. *      an icon which has a global ID. See the FREF resource, below)
  134. *   local ID 1 maps to global ID 129
  135. *   "FREF" (means file reference), # of FREF res in bndl = 2
  136. *   local ID 0 maps to global ID 128
  137. *   local ID 1 maps to global ID 129
  138. Type BNDL
  139.    ,128(32)
  140.    SKEL 0
  141.    2
  142.    ICN# 2
  143.    0 128
  144.    1 129
  145.    FREF 2
  146.    0 128
  147.    1 129
  148. * a File Reference
  149. *   ID, (32 => purgeable)
  150. *   "APPL" : a file of type APPL (SKEL itself) gets the following icon (a skull)
  151. *   local icon ID; maps to global ID as specified in BNDL
  152. *   name of file that must accompany application if transferred; omit if none.
  153.   Type FREF
  154.    ,128(32)
  155.    APPL 0
  156. * Another File Reference
  157. *   ID, (32 => purgeable)
  158. *   "BONE" : a file of type BONE gets the following icon (crossbones)
  159. *   local icon ID
  160. *   no filename
  161. Type FREF
  162.    ,129(32)
  163.    BONE 1
  164. * An icon list for the application icon (a skull)
  165. *   ID (the application icon), (32 => purgeable)
  166. *   the icon data: 32 lines of 8 hex chars each
  167. *   the icon mask: 32 lines of 8 hex chars each
  168. Type ICN# = HEXA
  169.  ,128(32)
  170. 001FF000
  171. 01E00F00
  172. 070001C0
  173. 0C000060
  174. 18783C30
  175. 10CC6610
  176. 31844318
  177. 21044108
  178. 21044108
  179. 218C6308
  180. 20F83E08
  181. 30000018
  182. 10000010
  183. 08000020
  184. 04028040
  185. 03028180
  186. 01828300
  187. 00828200
  188. 00400400
  189. 00400400
  190. 00400400
  191. 004FE400
  192. 005BB400
  193. 005BB400
  194. 007FFC00
  195. 00200800
  196. 00301800
  197. 00183000
  198. 0007E000
  199. 00000000
  200. 00000000
  201. 00000000
  202. 001FF000
  203. 01FFFF00
  204. 07FFFFC0
  205. 0FFFFFE0
  206. 1FFFFFF0
  207. 1FFFFFF0
  208. 3FFFFFF8
  209. 3FFFFFF8
  210. 3FFFFFF8
  211. 3FFFFFF8
  212. 3FFFFFF8
  213. 3FFFFFF8
  214. 1FFFFFF0
  215. 0FFFFFE0
  216. 07FFFFC0
  217. 03FFFF80
  218. 01FFFF00
  219. 00FFFE00
  220. 007FFC00
  221. 007FFC00
  222. 007FFC00
  223. 007FFC00
  224. 007FFC00
  225. 007FFC00
  226. 007FFC00
  227. 003FF800
  228. 003FF800
  229. 001FF000
  230. 0007E000
  231. 00000000
  232. 00000000
  233. 00000000
  234. * An icon list for a file of type BONE (crossbones)
  235. *   ID (the icon for BONE files), (32 => purgeable)
  236. *   the icon data: 32 lines of 8 hex chars each
  237. *   the icon mask: 32 lines of 8 hex chars each
  238. ,129(32)
  239. 03C000F0
  240. 06600198
  241. 04300308
  242. 1C30030E
  243. 30200103
  244. 20300301
  245. 20180601
  246. 300C0C03
  247. 1F06183E
  248. 0D83306C
  249. 00C1E0C0
  250. 0060C180
  251. 00306300
  252. 00183600
  253. 000C1C00
  254. 000E0C00
  255. 001B0600
  256. 00318300
  257. 0060C180
  258. 00C1E0C0
  259. 01833060
  260. 03061830
  261. 1E0C0C1E
  262. 30180603
  263. 20300301
  264. 20600181
  265. 20400081
  266. 20400081
  267. 30400083
  268. 18C000C6
  269. 0F80007C
  270. 00000000
  271. 03C000F0
  272. 07E001F8
  273. 07F003F8
  274. 1FF003FE
  275. 3FE001FF
  276. 3FF003FF
  277. 3FF807FF
  278. 3FFC0FFF
  279. 1FFE1FFE
  280. 0DFF3FEC
  281. 00FFFFC0
  282. 007FFF80
  283. 003FFF00
  284. 001FFE00
  285. 000FFC00
  286. 000FFC00
  287. 001FFE00
  288. 003FFF00
  289. 007FFF80
  290. 00FFFFC0
  291. 01FF3FE0
  292. 03FE1FF0
  293. 1FFC0FFE
  294. 3FF807FF
  295. 3FF003FF
  296. 3FE001FF
  297. 3FC000FF
  298. 3FC000FF
  299. 3FC000FF
  300. 1FC000FE
  301. 0F80007C
  302. 00000000
  303. ****    end of information for the finder                          ****
  304. ***********************************************************************
  305.  
  306.