Ambrosia Garden Archive
    • Ann: ResEdit Plugin! oütf custom editor


      The oütf editor plugin for ResEdit
      -----------------------------------
      v1.0: (11k) (url="http://"http://www.mso.anu.edu.au/~ralph/rodger/outfeditor.hqx")http://www.mso.anu.e.../outfeditor.hqx(/url)

      This is a bit experimental.

      I got tired of using the oütf TMPL in ResEdit for editing my oütfs. I
      also didn't feel like writing a whole new editor like ShipWrite just for
      the little oütf resource. Then I remembered that long ago I had some
      examples in my ETO#5 (1991!) developers CD on creating and adding
      resource editors to ResEdit. It turns out that ResEdit was designed to
      use plugin editors from the beginning, it is just that most people either
      didn't realise it or were happy enough with TMPLs and editing simple resources.

      Anyway, you always hear the Resourcerer is better because it can handle
      more complex resources than ResEdit - it just has a smarter TMPL mechanism.
      It looks like this is just because nobody has been writing extensions to ResEdit!
      Sooo, I decided to get out the old CD and tried my hand at making a custom
      resource editor to plug into ResEdit. If it works I might try more!

      The file 'oütfEditor.res', contains my first attempt, and it is OK I think.

      IMPORTANT NOTES
      ---------------

      • To install, open the ResEdit Preferences file (in preferences in system folder
      and paste the contents of oütfEditor.res in. Quit Resedit and start it up again.
      Then try editing some oütf resources!

      • Work on copies at first - there is no 'safe' read only mode, and the
      resources are edited as you go unless you revert the file.

      • This plugin requires System 7.0 or newer (for the popup menus) and works
      best in colour.

      • Limitations:
      0) It only edits EVO 1.0.2 oütfs. It will modify 1.0.1 and earlier
      oütfs and make them 1.0.2 format by padding out the resource to 38 bytes.

      1. Designed for 'oütf' resources in plugins, it only looks for
        individual 'PICT' resources and 'STR '. It won't display the small
        picture from the composite PICT 6100 resource used by built-in
        oütfs in EVO. It also won't look in 'STR#' names in built-in oütfs.
        It will only find the associated resources if they are in the same file
        as the oütf. (you can still edit the oütf, but the PICTs and STRs
        won't display)
      2. You must name new oütf resouces with the ResEdit GetInfo, there is
        no field in the editor to do this.
      3. You don't edit the PICT and STRs in the outf editor, you just go and
        create/edit them normally with ResEdit in other windows. You may need
        to close and open the oütf window to force an update if you edit the
        STRs or PICTs in another window.

      Summary
      -------

      This is an 'EVO plugin oütf editor ResEdit plugin'!

      Cheers
      Ralph

      ------------------
      (url="http://"http://www.sutherland-studios.com.au/family/evo_software.html")R & R Software(/url)

    • Quote

      Originally posted by Ralph:
      The oütf editor plugin for ResEdit

      hehe, now the oütf icon looks lake a plugin icon, but it is black & white! haha

      ------------------
      (url="http://"http://www.sutherland-studios.com.au/family/evo_software.html")R & R software(/url)

    • Quote

      Originally posted by Ralph:
      The oütf editor plugin for ResEdit

      I've been playing around with this a bit and I think this is a great idea. I'm surprised/disappointed it hasn't been done before.

      Would you be willing to post some info on how things like this can be done? I'm interested in learning how, but don't know where to start looking.

      -STH

      ------------------