Voloda2
Voloda2

Reputation: 12607

Can I change a plist file in the NSBundle folder?

Is it allowed to change a plist file in my Cocoa app's bundle?

Upvotes: 0

Views: 68

Answers (2)

Fernando Mazzon
Fernando Mazzon

Reputation: 3591

No, you shouldn't do that. Make a method that returns the contents of /your.plist if it exists and have it fall back to /your.plist if it doesn't. When modifying it, always save it to Documents.

Upvotes: 0

Catfish_Man
Catfish_Man

Reputation: 41821

Modifying the contents of your application bundle is generally a bad idea. For example, it can break your application's code signature.

Upvotes: 2

Related Questions