Earlier this evening I put together a convenient little class, ViewOptions, that allows you to toggle the columns on a table view. Here’s what it looks like:
Usage is simple:
[[ViewOptions viewOptions] showViewOptionsForTableView:oYourTableView];
And thats really all there is to it.
Update 9/3/08: I just fixed a fatal design flaw that prevent this class from working properly: Because selection was disabled it was impossible to toggle the checkboxes.
You are free to use, modify, and distribute the above code in binary or source without restrictions, provided that you understand the creator is not liable in any size, shape, or form.
Its been a while since I’ve posted anything on this blog, and a few things have happened. So. Here goes.
First, last week, something unheard of happened. Someone gave me a 20 inch iMac G5, just a month or so out of warranty. I have to say, its probably the best computer I’ve had to date. Everything is just so bloody fast. I can’t imagine what its going to be like when I [eventually] get an Intel Mac. My dependency libraries compile in seconds, and my application and framework compile in under a minute. That may sound minor to you, but do keep in mind I’ve been stuck on a PowerBook G4 for the last 6 months and before that I just had a Mac Mini.
With the addition of a second computer to my technology-family, I am back to a problem I’ve had on and off for a very long time: Keeping things synchronized. Now, for the most part this isn’t a problem. I’ve started to use Google Reader* for my feed aggregation, so that automatically stays in sync. My primary development interests (aka: Pinna and PlayerKit) are entirely under version control, so its as simple as `svn up`ing. But, unfortunately, the convenience stops there. For practically everything else, music, pictures, chat logs, the likes, I have to synchronize them manually. For anyone with multiple computers, I am sure at some point you’ve had this problem, its a real pain in the ass.
I’ve been considering my options, and a little while ago (around a week) Brian suggested I use SugarSync. It looks great, but I am broke as it is, so I am not sure if I am ready to try it, love it, then force myself to buy the full service. I’ll follow up on this happy predicament later.
Camping. I’ve done my yearly camping. Two weeks ago I went to boy scout camp, which was fun. I discovered I quite like climbing, and that I can loose large amounts of weight just walking. Plus it was nice to see friends.
And about a month ago, I went camping in Rangeley State Park. It rained most of the week, and on the third to last day (Thursday) I was there there were two parallel thunderstorms on both sides of the lake, it poured sheets, and I got a bit wet. But, overall it was a great week, I got tons of pictures, unfortunately I haven’t been able to get them online. I took a lot, and I only have the camera on me for two days. At some point, I’ll get them online, but its going to take patience, which I simply don’t have. However, here’s a picture from the landscape set:

Well, thats about all I can write about right now. I’d like to get into the habit of writing blog posts more often, so we’ll see how that goes!
Until next time,
Bye.
*: Google Reader a deserves a plug. Shut up.
As you probably noticed, I haven’t posted a whole lot of anything lately. Sure my Twitter feed slowly trickles into my WP blog, but those aren’t really posts, just short snippets of pure insanity. For whatever reason I feel obliged to write something, no matter how shitty the end result of this ‘writing’ is. Its possible that it has something to do with the fact I am waiting for my PowerBook to back up, or the fact I am waiting for a clients new MacBook Pro to finish running updates which is always annoying. Well sense I don’t really have that much to right about, here goes.
I’ve updated Tikiug to a fairly unimpressive version 2.0, I’ve told no one and posted nowhere about it, mainly because it actually drops functionality that I don’t believe anyone ever used. It no longer allows export to DLTA theme files, like anyone really uses them. It does, however, add a nice neat per-variation file list that allows you to drag ‘n drop files from the GUIKit to anywhere in your file system, no need to do a complete export anymore. This is actually the main reason I am calling it 2.0. In addition to this fairly minor feature, its a complete rewrite. Thats right, I dropped the original source completely and started over with a Leopard-only design in mind. Sure, it could still run on Tiger but I don’t care about Tiger.
I’ve also placed a small application on my site called Reflectomatic, again I’ve told no one and posted nowhere about it, but it is there. Reflectomatic is a one-trick application: it adds reflections to any type of image you want and then exports that image+reflection to a PNG file (there is no support for other formats, so suck it up and use PNG). It gives you some-what fine-grained control over the reflection, letting you control opacity, offset, and the amount of the image actually in the reflection. I wrote Reflectomatic because I didn’t want to spend thirty dollars for Pictureque to make easy reflections. Fucking Delicious Generation developers.
In addition to that as you may, or may not have noticed I’ve redesigned my site again. I moved away from the soft brown green and blue colors of the last design and moved into a stark black and white design that presents all of the content of petermacwhinnie.com with absolutely no fuss. Truly, it is boring. But! That doesn’t mean its not a nice design, even though I am of course already completely fucking bored with it. I really do hate web design, its so difficult to be satisfied with it for more then 15 short unpleasant minutes. And no, I don’t think a professional designer could do away with this, they may be better at it then me, but they aren’t that much better.
Besides all that lovely shit the school year is coming to a fast-approaching end, as in the last quarter is over on Friday the 13th, of all days. Quite frankly, I am really, really, REALLY fucking glad the school year is over. Its been long and some-what productive, but that doesn’t mean I won’t be glad to be ‘officially’ over for the summer. I’ve been working (and procrastinating) on a history paper, it covers 50 years of the 20th century. Its a time period I quite enjoy reading and learning about, but I swear its going to kill me to finish this paper. I am hoping that after the official school year is over I can take a breath and enjoy writing the rest of the paper, because its likely going to take until the next school year starts to get it up to my own standards, as well as everyone else’s.
Well, that just about covers everything I wanted to briefly write about. Amusingly enough, time machine still isn’t done backing up my PowerBook, and the MacBook Pro is still running updates. Damn I hate rainy weather. I do hope you’ve enjoyed this short time we’ve had together, until next time.
Bye.
Quick Edit: the MacBook Pro is now installing, its done downloading; Also, its really creepy how Wordpress hides the post you’ve been working on when you press Save, it seems like its just eating it and not saving it. I hate web applications.
{ All links lead to the iTunes Store. }