Re: LSUIElement?!
Re: LSUIElement?!
- Subject: Re: LSUIElement?!
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 22 Sep 2003 20:40:23 +0200
At 19:52 Uhr +0200 22.09.2003, David Dauer wrote:
NSMutableDictionary *myDict = [[NSBundle mainBundle] infoDictionary];
I don't think infoDictionary is declared to return a mutable
dictionary. So, what you're doing is modifying a dictionary that may
be mutable as an implementation detail, but NSBundle doesn't expect
you to modify it, and thus doesn't save any changes to it back to the
file. What you need zo do is make a mutableCopy of the dictionary,
and then somehow write that back to your plist.
But you better forget about this. Users that aren't admin users, or
users that run your application from a file server don't have write
permission to this application, which means even if you do this
correctly, it will fail very often.
You should consider splitting your application into two parts, a
faceless part, and one with a GUI. You can put the faceless app in
the GUI app's "Resources" folder to make them look like a unit.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.