now on OS9!
All right folks, while I was mostly away from the 'Net in August, I worked on back-porting ViewRLE on OS9. First I had to identify any OSX-specific stuff I was using (besides Quartz, which was obvious), then use OS9 stuff to replace them (say, QuickDraw instead of Quartz). Then I had to get a development environment which could target OS9: The Macintosh Programmer's Workshop (usually known as MPW). Then compile the code, fix the compilation problems, then run the stuff on OSX (since my app is Carbon and requires CarbonLib, the OS9 build also runs on X), fix some bugs, then run it on 9, fix MANY bugs adn change some stuff that didn't really run well on OS9 (say, the popup menu diamond marks were replaced by a checkmark each time they were picked, leading to problems, so I scrapped the popup menu altogether and replaced it by something that makes better sense), then package it in a nice almost-universal bundle, that contains an OSX-specific build and an OS9 build (that could run in OSX, but this isn't supported) that even contains a mini 68k app that tells the user of a 68k machine that it requires a PowerPC, courtesy of BurgerB..., ironically... Just let me add an Intel build (the code is ready for that, just wait I get Tiger...), and you get a really wholly universal binary (68k, PowerPC, OSX, x86).
It should run without problem, provided you meet the requirements, which are... mostly unknown. Indeed, I don't have an OS8 computer to test on, and though I'm pretty sure I'm using OS9-specific stuff, I'm not really sure and hence the prog does not check for appropriate system specs before going on; therefore it will likely crash. Same thing for CarbonLib: I think version 1.3 is enough, but I couldn't really try. Please tell me if it does work for you, with which system and CarbonLib version. However, one important problem (which I'll try to fix) is that, if the app runs out of memory, it doesn't even realise it and tries to use the memory it requested but that couldn't be allocated and... crashes, yes. this shouldn't happen unless you lower its memory partition or open a ridiculous number of RLEs.
Another thing: dmgs don't work with OS9, and .sit cannot keep important UNIX stuff such as the execute bit, meaning I have to distribute this in .sitx, therefore OS9 users will have to get the latest Stuffit expander they can download (7.0.3) in order to get ViewRLE. Due to stupid IPB limitations (extension of uploaded files), it has been uploaded to my webhosting, you can get it at -removed linky- . The source is attached to that post, it includes notes on the OS9 porting process, and a MPW makefile (with of course as usual the Project Builder project).
EDIT: I've removed this old version and its source. Please grab the official release at the Nova add-on files. Thanks!
This post has been edited by Zacha Pedro : 03 December 2005 - 05:14 PM