How to Load a Resource from Your Application Bundle in Mac OS X
Recently I launched myself into the world of Mac OS X
programming. The entire experience has been of mixed results. On
the one hand I appreciate that there are so many tools and
guides out there to help programmers develop for the Mac OS X
platform, but I feel that most of the Apple Developer Guides are
sadly lacking in proper examples of how to do basic things.  One
of the basic things that I wanted to do was find a way to get a
C string path to a file located in the application bundle.  As
some of you Mac OS X users may know one of the great things
about professional Apple programs is that they are located
inside bundles. All the data and files associated with the
program are inside one tidy little bundle that can be dragged
into your application directory to install it. Or you can drag
the bundle to your home folder, or run it off of your desktop,
or rename it. The application continues to run no matter how you
change its name or location.