Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
plist resource file in xcode is not modified when calling writeToFile
This question is probably more related to a confusion with how to use xcode, but I'm not sure.
So I have a plist file in xcode which I added as a resource. It contains an array of dictionaries. data.plist, for simplicity.
I load the data from this file in my main view controller's viewDidLoad function, no problems there. From there, I can see clearly that the file (used a call like [[NSBundle mainBundle] pathForResource: @"data" ofType: @"plist"];) is loaded from the local directory of the XCode project, i.e. the same folder as the xcodeproj file for my project. However, later on in the app lifecycle, in the app delegate's applicationDidEnterBackground function, I want to save any changes to this plist file. However, when I call pathForResource, it's clear that the file that is being modified is only the plist file inside the builded version of the app in the following path Users/My Username/Library/Application Support/iPhone Simulator/4.2/Applications/C8F45V22-26C2-5C7G-A105-E038C25F4255/MyApp.app/data.plist
And this file is only accessible through the finder by opening the contents of the .app file. So my question is, how can I get it so that when I modify/over write the contents of that plist file, it will show up in the file that I have in my xcode window under "Resources"? I've looked around extensively to see if other people have had the same issue, but surprisingly I have not been able to find anything (probably not using the right keywords).