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

  • SEARCH
  • Home
  • 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 284481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:27:43+00:00 2026-05-12T05:27:43+00:00

My question is stated above in the title but I’ll write it here again

  • 0

My question is stated above in the title but I’ll write it here again

Is it possible to copy a different plist into the application bundle code wise??

This is actually a bit related on my previous question 😉 Create a dictionary property list programmatically

But since I can write out the plist (and test if I’m doing something wrong ) I was wondering if I can copy my written file


[testBook writeTofile:@/Users/jack/testbook2.plist" atomically:NO];

to my application bundle in code (so that it can read from here with

NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *dataPath = [path stringbyAppendingPathcomponent:@"testbook2.plist"];

Another alternative is good as well for instance if I can read my plist directly from another path instead of the mainBundle

  • 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-05-12T05:27:43+00:00Added an answer on May 12, 2026 at 5:27 am

    Physically, yes it is possible sometimes.

    NO, DON’T DO THAT!!

    Okay… copying stuff into your App Bundle is bad, your app bundle is not where you keep settings or data. You should think of your app bundle as readonly. You should do this for several reasons:

    1. While most of the time a user on a Mac OS X system has permission to write to an app sometimes they don’t. Think about children who are not using admin accounts, or lab deployments at schools.
    2. It will invalidate codesigning. If you sign your application this will change the signature and break the codesign, causing all sorts of weird issues (losing any firewall permissions the app has, telling the user the app has changed and asking them for keychain permission again, etc). In the future this may also pop up all sorts of warnings since tampering with an app is a big security red flag.
    3. It won’t work on iPhone. That may not be an issue, but if you every intend to use this code on an iPhone the apps bundles are sandboxed readonly

    The correct place to put this sort of stuff is into a sub folder of the Application Support folder

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

Sidebar

Related Questions

It is possible that my question title is misleading, but here goes -- I
(I hope this is a valid question) As I stated in my title, I'm
Pretty new here. But before I ask my question, I'm not looking for teh
Question as stated above .. from the stand point of Operating System, which one
Firstly, sorry for the difficult question title, but I can't think of anything better.
in my previous question Shared vectors in OpenMP it was stated that one can
As the question states, does the integer-factorization problem fall into the class of NP-Complete
As my question states, I can't figure out why, but while using WebMatrix to
I'm using Java 6. As the question states, how would I write a method
Here's an example URL: http://www.motherjones.com/mojo/2012/05/reince-priebus-lgbt-workplace-discrimination The above used to pull in no image, title

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.