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 … Read more

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 … Read more

Creating Thumbnails in a List View Control, Part 1

A long time ago, I needed to create an application in Windows that could enumerate the contents of a folder and present the images as thumbnails within a List View Control. I had found this article on CodeGuru.com that promised to show how to do all that, but actually created nothing more than confusion. There … Read more