Re: Path To Folder Where App Is
Re: Path To Folder Where App Is
- Subject: Re: Path To Folder Where App Is
- From: Guy English <email@hidden>
- Date: Tue, 22 Mar 2005 01:46:08 -0500
Hey,
I think you may have already solved this to your satisfaction but
I'd suggest doing things a little differenly from what's been
mentioned here.
Keep your 'boards' in your application Resources folder. When you go
to load one of the files check in ~/Library/ApplicationSupport/YourApp
it it's there, load it, if not load it from your bundle. When the user
makes a change save it to ~/Library/ApplicationSupport/YourApp. That
way the app support folder only holds the changes from your default
and the code is automatically setup to fall back to known good
resources. Plus you don't need to copy 25 files (that sound like
images) at startup, and you don't need to have that timer that tries
to guess how long a copy operation is going to take. :) And as you add
resouces (and if you're making a game that'll happen a lot) you don't
need to add them to your copy phase, check they all exist at startup,
and adjust the "guess the copy duration" timer.
Anyway, just my two cents on it. Two cents I think you can take to the
bank though. :)
Guy
_______________________________________________
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