Re: modifying Info.plist at runtime
Re: modifying Info.plist at runtime
- Subject: Re: modifying Info.plist at runtime
- From: Douglas Davidson <email@hidden>
- Date: Tue, 29 Oct 2002 09:17:18 -0800
On Tuesday, October 29, 2002, at 06:00 AM, email@hidden wrote:
I need to be able to modify some setting inside the application bundle
at
runtime, ie. modify a plist like Info.plist from inside the
application.
Is this safe? Is it possible? What is the simpliest way, without
causing a
problem for the application?
If your intent is to change your Info.plist so as to affect the current
running copy of that application, you're probably out of luck. The
contents of the Info.plist are mostly read and cached very early on
during application launch. If your intent is to change the Info.plist
for the future, without affecting the current running copy of the
application, conversely, you shouldn't have to do anything special.
However, bear in mind that in general you cannot assume that anything
in your application's bundle is writable--it might be stored on a
server, or on a CD, or you simply might not have write permissions for
it. Under special circumstances, you may be able to write to it--for
example, if the user running the application is the installing user, or
can authenticate suitably.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.