Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!cernvax!chx400!chx400!bernina!iis!neeri From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: WDEF editor ? Message-ID: <1991Apr29.082930.26902@bernina.ethz.ch> Date: 29 Apr 91 08:29:30 GMT References: <1991Apr28.060530.22536@newshost.anu.edu.au> <1991Apr28.232759.13768@uokmax.ecn.uoknor.edu> Sender: neeri@iis (Matthias Ulrich Neeracher) Reply-To: neeri@iis.ethz.ch (Matthias Ulrich Neeracher) Organization: Integrated Systems Laboratory, ETH, Zurich Lines: 35 Nntp-Posting-Host: etzj-gw In article <1991Apr28.232759.13768@uokmax.ecn.uoknor.edu>, jtsweet@uokmax.ecn.uoknor.edu (Jonathan Thoma Sweet) writes: >rang@cs.wisc.edu (Anton Rang) writes: >> A WDEF resource is just a chunk of 68000 code. See Inside Mac for >>details. There are probably disassemblers around for it; the source >>for the standard WDEF is available on apple.com. To create one, you >>can just use your favorite compiler--MPW, THINK Pascal, and THINK C >>all make this easy. (OK, "easy" is relative. Fairly easy?) > >Yes but there must be some sort of a program that would be able to >generate the code. I've looked in the Res. of a QuickChange document ^^^^^ ClickChange ? >(a cdev that changes your cursors, windows, buttons, and sounds) and >the only thing that defines the windows is the WDEF resource. It's >not a huge resource and I'm sure there could be some kind of utility >to create a new recourse. There are *lots* of such utilities. They are called "compilers" or "assemblers". The reasons why the resource is small could be: - The programmer and/or the compiler were clever. - The task of a WDEF is relatively simple (especially in black & white) Anyway, WDEF and CDEF resources are 100% pure 68000 binary code. >>> Also what about the same sort of thing for buttons (a la >>>Olivers Buttons) and which resource is used for that ? > >Maybe the editor could do both. Sure. Any compiler or assembler. Get the picture ? :-) -- Matthias Neeracher neeri@iis.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_