Embedding Resource Files in a Cocoa Foundation Command Line Tool

Drew McCormack: Graham Lee and several others pointed me to two standard solutions: you can use the linker to embed the files in the __text section of the Mach-O binary, or you can use a tool called xxd to convert the file’s data to a C array, and include that directly in your source code. … Continue reading Embedding Resource Files in a Cocoa Foundation Command Line Tool