Re: Path To Folder Where App Is
Re: Path To Folder Where App Is
- Subject: Re: Path To Folder Where App Is
- From: Charilaos Skiadas <email@hidden>
- Date: Tue, 22 Mar 2005 00:19:56 -0600
On Mar 22, 2005, at 12:02 AM, Adam wrote:
On Mar 22, 2005, at 12:59 AM, Charilaos Skiadas wrote:
On Mar 21, 2005, at 11:49 PM, Adam wrote:
Your advice sounds right. I am using
[manager copyPath:boardsFolderInBundle toPath:AGFIBS_PATH_TO_BOARDS
handler:nil];
to copy the folder from my app bundle to the application support
folder. However, my app launches and begins this copy of an entire
folder of images it needs to display. However, the app draws its
view before the copy is done resulting in missing content. Is there
any way to know that this operation has completed before moving on?
You shouldn't rely too much on this data being there!! What if the
user decides to clean stuff up and kills the whole folder?
Does the above code run each time your app loads, or only if the
files don't exist?
Your view should probably first check if the files exist, and then,
if they don't, use the ones stored with your application instead.
It only does the copy if the folder does not exist. The problem is
there is no one file to check. It needs about 25 images to be there
for it to work.
Then you should probably be checking for all those 25 images when your
app loads up, and if they are not all there a)copy them there and
b)tell your view to use the files stored in your resources folder
instead. The copy might fail for all sorts of reasons, so you should be
ready to deal with it.
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden