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 »

DocBase Searching

| December 26th, 2009

One thing remained to make my document database at least somewhat useful. We could find documents by document Id, but nothing else, so we’ll fix that now. more »

DocBase – Part 2

| December 23rd, 2009

BRDocBase wasn’t really usable where I left off, so I’ve got a few tasks before it’s at least in a state where I can use it for development purposes.

more »

DocBase

| December 20th, 2009

So, apparently, I enjoy doing things that have already been done. Perhaps I feel I can do them better, or perhaps I’m just unimaginative and can’t think of anything else to do. Well, what interests me right now is data storage. At this point you could say ‘Dude! CoreData! Get a clue!’ and you’d be right. CoreData is really nice, but I have something a little bit different in mind. more »

Unit Testing in Xcode

| December 16th, 2009

So I’m attempting to blog…again. I think this will be my third attempt. Maybe since all the cool kids have moved on to twitter, I’ll be able make it stick this time. My plan is to mostly journal about a project I’m working, and hopefully blogging about it will help me keep both going.

Before I get started on my project, I’m going to go a bit into unit testing. I admit that I still struggle with writing good unit tests on whatever platform I’m developing for, and really, Xcode doesn’t make it much easier. Things have gotten better in Xcode, but I’m still not really satisfied with the current method for creating unit tests. So I’m stealing a couple of ideas.

more »