Cocoa project

The Cocoa/Mac project that I’ve been working on is pretty much done. It’s not a really big or complicated program, but I just ran a ‘wc’ on it, and it’s a bit over 1400 lines of code, so it’s not trivial either. I’m betting that, if I was more experienced with Cocoa, it could probably be, maybe, 900 lines instead of 1400, but that’s still a reasonable size. Oh, and if I didn’t have to support OS X 10.4, and could have used the garbage collector and other stuff that only works in 10.5+, I could probably have shaved off another 100 lines of code.

My program is replacing an old program written in FutureBASIC. Looking back at the source code for that, it was a bit over 600 lines of code, all in one file. You can definitely write a shorter program if you don’t have to declare variables, or allocate and release memory for them.

Overall, I had some fun learning a new language and a new framework, and figuring out how to solve problems that would have been trivial for me to solve in .Net/C#. I’d like to learn some more Cocoa stuff now, and maybe try writing an iOS app. I don’t really have a specific idea for an app, but I’ll figure something out.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.