On Apr 9, 2008, at 5:35 PM, John Stiles wrote:
Even if you could change it, once your app is running it, changing the plist won't have any effect until the next time the app is run. So it's probably a moot point.

Yes, I actually pointed that out in my first reply, which didn't make it to the list because Mail.app won't switch "personalities" appropriately, so I sent it from an "illegal" address.

Although, Glenn has a good point...code signing will surely break when doing that as well, right? Does that operate on the entire bundle, or just the executable bits?

glenn andreas wrote:

On Apr 9, 2008, at 4:41 PM, Randall Meadows wrote:

[resending with my subscribed address--grrr]

On Apr 9, 2008, at 3:34 PM, Jere Gmail wrote:
I know taht with nsbundle I can obtain the path. But as it is a xml
file, I didn't want to mess with it and I was guessing some class
could handle it easily.

NSMutableDictionary

Read it into a dictionary, change the appropriate key-value pair, write it back out.

You shouldn't design your application such that it requires being able to modify its own bundle in any way, shape or form. In many cases you won't have write permission on it...
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to