Phorg
Another project I have on the go is a picture viewer. I know, not that exciting, but it’s entire purpose in life is to allow me to learn more about Mac programming. It loads the picture thumbnails using multithreading and it allows dynamic resizing of the window and the thumbnails.
Here’s a look at the window so far:
I was starting to code up a zoom window for it yesterday - so you could double click thumbnails and see the picture in a larger window - but then I got to wondering if it was possible to use the Quick Look window that comes with Leopard. It turns out, it IS possible! It’s a bit of a hack but the code I found to do it wasn’t that bad to look at and it’s contained in a small area of the code base so I can replace it later if the hack breaks. I found the info here.
So I changed the code to behave like Quick Look does in the Finder. Pressing SPACE will zoom the selected pictures into the Quick Look window and pressing it again will close the window. It works!
Quick Look is great. Imagine the possibilities this opens up for the ToeTag texture browser. Muhaha.
In closing, here’s a movie of the pictures loading using multithreading. Why? Why not? You’re at work and you’re bored.


January 28th, 2008 at 9:18 am
Looks great. Preview sucks as a quick photo viewer, this would be useful for those times you don’t want to open iPhoto just for a quick look at something.
January 28th, 2008 at 9:27 am
Hey JJ!
Yeah, that’s my thinking as well. I want you to be able to easily open Phorg and look at the contents of a folder. Quickly and simply without all of the iPhoto overhead or the Preview suckiness.
January 29th, 2008 at 4:35 am
when i saw the screen shots i you started working on a doom editor for the mac!
January 29th, 2008 at 5:27 am
Hahaha! Oh man, don’t tempt me.