Changing library dependency paths

If you want to change what your host application is dependent on, without having to rebuild it, you can use the install_name_tool app for changing this: install_name_tool -change oldreference newreference appname install_name_tool -change /usr/lib/libItsAllAboutMe.dylib @executable_path/../Frameworks/libItsAllAboutMe.dylib MySuperApp This is pretty useful for cases where you might have a dynamic library located in a static location, but … Read more

Creating a Tag with Subversion

If you have the need to create a tag from your current source code, you can use the copy command from the shell of your preference: $ svn copy http://svn.example.com/repos/MineMineItsMine/trunk http://svn.example.com/repos/MineMineItsMine/tags/release-2.0 -m “Creating 2.0 release of the ‘MineMineItsMine’ project.”

I made a Widget!

In the course of the day, I actually open several web pages related to the work I do. The browser, for better or for worse, has become part of my workflow. After a while, it can get annoying to constantly have to log in to separate pages to see all of the data I need … Read more

How to detect what SDK you are building for in Xcode

I recently had to build a file for multiple operating systems and had to figure out a way to enable a feature that is only available on Mac OS X 10.5 and greater, and Windows. Here’s how I did it: #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) || defined (_WIN32) #include #endif Now, technically there is no harm … Read more