Re: portable app
Re: portable app
- Subject: Re: portable app
- From: Amy Heavey <email@hidden>
- Date: Fri, 1 Oct 2010 11:38:27 +0100
This looks great, so I can store everything on the thumbdrive without
having to set up symlinks on the machines I want to use, and I don't
have to reference the drive itself as I can take the location from the
app bundle, perfect. ( a bit like web relative links I suppose,)
sorry, I did mean the data etc was in the ~/library/application
support/myapp folder.
Many Thanks
Amy
On 1 Oct 2010, at 12:00AM, Ariel Feinerman wrote:
Are you sure in the using of 'library/application support'? There is
of the matter is that one is designed for the app data not for the
user data.
Maybe you should save such files in a directory relative to the bundle
or in the bundle itself (not good idea). In this case you can launch
your app from your drive.
If your app is in /Users/user/yourapp, your files in
/Users/user/yourapp/Application Support, it looks:
NSString *appSupport = [[[[NSBundle mainBundle] bundlePath]
stringByDeletingLastPathComponent] stringByAppendingPathComponent:
@"Appication Support"];
2010/9/29 Amy Heavey <email@hidden>
I'm writing an app for personal use, using core data.
At the moment it's set up to save the data file in the library/
application support/myapp folder on the machine. I also want to
store a growing number of images to use with the app, so they are
set to store in this folder as well.
However, I'd like to be able to use this app on my laptop as well
as the desktop. I don't really fancy managaing some kind of sync,
and thought the best solution would be to store the app and all the
data/images on a thumb drive. There's only me using the app, and
having to walk and get the drive from the office isn't a huge
headache, and I can easily take it with me if I want to work
elsewhere (not on my home network).
How would I set the data store to a mobile drive? can anyone point
me at a tutorial? Is it as simple as naming the thumbdrive and
referring to it by name in the code? The Code I've currently got is
the auto/default type set up, following the Hillegass book as well,
Thanks,
Amy
_______________________________________________
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
--
best regards
Ariel
_______________________________________________
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