Re: Download images and modify bundle?
Re: Download images and modify bundle?
- Subject: Re: Download images and modify bundle?
- From: Andreas Mayer <email@hidden>
- Date: Fri, 2 Jul 2010 13:47:30 +0200
Am 02.07.2010 um 10:01 Uhr schrieb sebi:
When I download an image and want to keep it for further reference,
I assume I have to store it in the documents directory and not in
the app bundle, because otherwise I would invalidate the signature
and the app wont run anymore. Is this correct?
You should always regard the app bundle as read only. The application
might have been installed with administrator rights so that the
current user does not have write access.
If I can't store the images in the app bundle together with the
others I'm reduced to two options, if I see it correctly: Duplicate
the original images to the documents directory (waste of memory) or
manage two image folders (administrative overhead). Does anyone have
a better idea? Maybe use of file-aliases?
First, it seems the Application Support folder might be a better place
than Documents, depending on the nature of those images. Are they the
actual data that the user is creating (put them in Documents) or are
they material that the user uses to create his documents? (put them in
Application Support)
To answer the question: Just copy them. That also has the benefit that
the user can delete them if he wants to.
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden