Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HarryWorksInc

macrumors regular
Original poster
Feb 21, 2010
179
0
Is there a way to alter a string in the .plist such as the icon file from inside you app? Such as a user could choose the icon image they want?
 
You can change your plist if you put it outside of your main bundle, e.g in the documents directory. You can either create a new plist outside of the main bundle or copy a plist with default values from the main bundle to the documents directory. After that you are free to read and write to the plist.
 
You can change your plist if you put it outside of your main bundle, e.g in the documents directory.
But the Info.plist must reside in the main bundle and the changes the OP wants to make (such as the app icon) only have effect when they're in the Info.plist.
 
But the Info.plist must reside in the main bundle and the changes the OP wants to make (such as the app icon) only have effect when they're in the Info.plist.

Oh, sorry. Yes, if we're talking about the app's Info.plist then it can't be changed. I thought the OP was talking about a generic plist file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.