Michael Cook’s Place

Bits of Genius in a Sea of Mediocrity

Michael Cook’s Place Random Header Image

Objective-C

There isn’t too much here right now. I’ve only done a little in Objective-C. My only project is SiteBlogger, which was designed to let me make blog posts easily.

As for a quick comment on Objective-C, I have started to “get” the syntax, but it can still be a little odd to me. I have noticed a few sticky points too. First is my fault, and that’s the semi-colons at the end of every line. I know C and C++ have that too, but after spending 6+ months in Python (where you don’t do that) I have been leaving out A LOT of those little things. The other thing that is catching me is little… oddities in the OpenStep/Cocoa libraries. For example, NSFileHandle acts as a file handle for you. It can open, close, read, write, etc from files (and I think pipes and other things). But it can’t CREATE files. If you want to write something to a brand new file as far as I can tell you must use the NSFileManager class. That seems odd to me. We’ll see what I think as I go along.

SiteBlogger

SiteBlogger

SiteBlogger is a little GUI interface to my SiteMaker programs. I’ve programmed it in Objective-C for Cocoa on OS X and it came along quite quickly. There isn’t much to say about it right now. The four buttons at the bottom of the program work, so does copy and paste, but that’s about it. It works just enough to be usable.