REALbasic
Maybe a diary of REALbasic app development. Maybe just stuff about REALbasic. Maybe nothing :)


@ Thursday, April 25, 2002
 

ResPloder Trickery

I ran into some interesting ResPloder details. I knew things worked pretty well, but sometimes, if I explode and then implode I'd get something that wasn't exactly the same as the original. For example, I tried exploding Graphics Converter and then imploding it back to an application. I got a file with the right icon, but when I tried to launch it nothing happened. And it wasn't the right size. A bit too small. So I investigated and found two problems. One, resources have flags. Purgeable. Locked. System Heap. I think there are five in all. I wasn't preserving those flags. Now I do. I actually write the bits as 0's and 1's into the file name. The second problem was that the names of some of the resources are so long that the filename I got when I stuck everything together was too long. And I guess there was a bug in ResPloder such that the file would be completely dropped on the floor. So I tried not saving the resource names. And then everything worked. But that can't be what I do in the final version. I want to preserve resource names. So I'm going to have to do what I didn't want to do. I'm going to have to have a separate file to store resource-related gunk and I'm going to have to put that file in the resource type folder. I have no choice, really.

comment ()  9:26:14 PM  #  

Radio Poster 1.1

A test using Radio Poster 1.1 from Mac OS 9.

comment ()  2:53:00 PM  #  

Fast And Furious Coding

I just spent a few hours of fast and furious coding and I think I have ResPloder 1.1 ready to go. It now does the implode/explode in a thread, so the rest of the machine can be somewhat responsive. There's a progress dialog and you can now stop the implode/explode. You'll be left with an incomplete file in that case, however. It was really easy to do all of this using REALbasic's Thread class.

comment ()  11:38:45 AM  #  

ResPloder 1.1

I promised yesterday that I wouldn't spend the day talking about ResPloder. Today is another day. So here goes. I'm hard at work on ResPloder 1.1. It's already way more useful than 1.0. You'll be able to selectively exclude resources from the explode/implode. You'll be able to set the type/creator of the files it creates. PICT and TEXT files will default to Graphics Converter and BBEdit repsectively. I may throw some more defaults in there before I'm done. PICT are correctly turned into PICT files, and vice-versa. I just need to add a progress window and I'm ready to ship.

comment ()  7:43:17 AM  #  


Click here to visit the Radio UserLand website. © Copyright 2002 Will Leshner.
Last update: 4/25/02; 7:43:18 AM.
April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~