Archive for January, 2010

A couple of BRDocBase changes

| January 23rd, 2010

I’ve been using BRDocBase fine in development for a few weeks. While it’s nowhere near complete, I haven’t had any real need for new features or performance improvement for my modest needs until now. more »

Organizing Shared Code

| January 22nd, 2010

I spent a little bit of time last weekend looking into ways I can more effectively share code between projects. I’ve gone back and forth on ways to do this and I finally feel satisfied with what I’ve got. more »

Modules in Objective-C

| January 15th, 2010

Categories in Objective-C can be a great thing. Being able to add methods to a class is a powerful feature. However, one weakness is that those methods only get added to one class. If I want the methods in a category to apply to more than one class, I have to put that category on a subclass. If I want to generic apply the category, I have to put it on NSObject (and then the methods are almost certainly available on classes I don’t really care about). Sometimes it would be nicer if I could choose individual classes that the methods are added to. This is done often in Ruby through the use of modules. more »

Once I started using my enumerations class, I quickly ran into a problem: how do I get all the enumeration values? It sounds like a simple problem to fix, but it turned out to be a bit more complicated. more »

Enumerations in Objective-C

| January 6th, 2010

I haven’t done much with DocBase since the last post, but I’ve by no means abandoned it. Right now, it’s serving well enough for development purposes in my application and I don’t want add features that end up being unneeded. However I did run into another issue that I thought was general enough to be talked about: enumerations. more »