How I like to code

Monthly Archives: July 2007

Using Cocoa to resolve Unix file paths with tildes

Quick! How do you expand a file path that has a tilde in a program? Luckily, you can use NSString to resolve the path for you. So, if you path looks like “~/Library”, you can use the stringByExpandingTildeInPath method to resolve the tilde to the full path: “/Users/johndoe/Library/”. Here is s snippet of code to […]

Creating writting made easier…

So what is new? Something old actually. English is what I am referring to and I have found a new way to think about the written word! My wife picked up some stuff at the local pharmacy and with that stuff there was a copy of ‘Mac Life’, a magazine dedicated to all things Macintosh […]

Objective-C and C++: Friends or Foes?

For many developers like myself, I learned a language as a means to create a program on a specific platform. Back in the early 90’s, I learned Pascal because that was the language that PC and Macintosh’s used. Later in the 90’s, I learned C++ because this was the buzzword language that BeOS, the powerful […]

XBox 360 and the Red Ring of Death

What a day! For the first time in a long time I had some time to kill, so what better way to do that then to play Gears Of War! I fired up my Xbox 360 and instead of giving me it’s usual chime and startup movie, I get three flashing red lights 🙁 I […]