Wednesday, July 16, 2008

Resumable Downloads, Commenting, Config editor

Resumable downloads are done, with the three things I mentioned in the last post now finished. I've spent some time adding more comments to the code to make it more readable.

Right now, I'm working on the config file editor. I'm playing around with Core Data, which will allow me to implement it very quickly and without a single line of code if I'm willing to change the file format a bit. I'm still undecided about whether to keep the old config format or not.

Wednesday, July 9, 2008

Resumable Downloads

After several dead ends, I've finally got resumable downloads minimally working.  There is now a Pause/Resume button on the installation tab.  The partial download is stored in ~/Application Support/Maclibre3 and metadata necessary to resume is stored in ~/Library/Preferences/com.maclibre.maclibre3.plist.

Still to do on this topic:
  • Download status does not display correctly after download resume
  • Automatically prepare for resuming if download fails
  • Start download from beginning if attempt to resume fails (for example, someone has deleted partial download file)

Tuesday, July 1, 2008

Preferences, and Miscellaneous Improvements

I've begun phasing out the use of the ~/.maclibre folder to store data. The fetching of the XML package list is now done synchronously (NSURLConnection) and not stored anywhere. The list of installed packages is now stored at ~/Library/Preferences/com.maclibre.maclibre3.plist , where it belongs. Downloads are still stored at ~/maclibre, but I will be moving them to ~/Library/Application Support soon.

I've also made a bunch of cosmetic and other miscellaneous changes as well. The quit button now terminates the program in the correct way, for example.