Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8227255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:03:57+00:00 2026-06-07T16:03:57+00:00

I have a mac app and want to hide it’s resources. On windows, I

  • 0

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 this link.

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 CFData objects. Then I’m going to store them in a CFDictionary object with the filename as the key. After that, I’m going to save the dictionary to a file.

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 CFDictionary to a char* and save that? Or will I have to save the keys and values individually and read them later to recreate a CFDictionary? If so, how would I convert the CFData objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:03:59+00:00Added an answer on June 7, 2026 at 4:03 pm

    I found this interesting page which has a utility method for converting a CFDictionary to CFData:

    inline CFDataRef makeCFData(CFDictionaryRef dictionary)
    {
        return CFPropertyListCreateXMLData(NULL, dictionary);
    }
    

    I don’t know if it would work with images and sounds, though. You may have to convert those to CFDatas first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little Updater in my mac app, which automatically downloads a dmg-file
I have never made an app using XCode and Cocoa but I think following
I have a custom NSView in my mac app and I want to do
I have a little app for myself on my windows machine which i want
I have a Scroll View in my Mac app with a white background but
I am making a simple mac app in which i want to switch windows.
I currently have my app configured for file sharing through itunes. However, I want
I have created a Mac app and need to place a shadow behind the
I have a problem deploying Qt frameworks with my Mac app, and I hope
I have a very simple Mac Cocoa app that just has a Web View

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.