title: merging app resources - mac
body: <p>I have a mac app and want to hide it's resources. On windows, I simply made a resource file, but those don't seem to be existent on Mac. So I decided to follow the advice of <a href="https://stackoverflow.com/questions/5069065/hiding-or-encrypting-app-resources">this</a> link.</p>
  
  <p>What I'm going to do, in another application which will prepare the resources beforehand, is take ALL my resources (text files, images, sound files, etc) and convert them each to <code>CFData</code> objects. Then I'm going to store them in a <code>CFDictionary</code> object with the filename as the key. After that, I'm going to save the dictionary to a file.</p>
  
  <p>Problem is, CFDictionary objects don't know how to archive themselves, and I can't use Foundation objects, just Core Foundation. Is there a way to convert a <code>CFDictionary</code> to a <code>char*</code> and save that? Or will I have to save the keys and values individually and read them later to recreate a <code>CFDictionary</code>? If so, how would I convert the <code>CFData</code> objects?</p>