Dominik,
The App Store has requirements about where you can create files. There are no places to have 'shared preferences' or similar between applications from different companies:
So:
OpenMetaBackups - these really help in keeping tags glued to files like Adobe Photoshop (and other Adobe apps) files, and also provide a layer of backup. There are located in the App Support folder.
I just turn them off unless the user has a folder in App Support. Also perhaps a menu item in your app that explicitly tells the user to 'backup open meta' and would simply create an empty folder to do the trick.
// Open meta backup folder - if one is there, turn on backups, else don't.
extern BOOL gDoOpenMetaBackups; // this is defined in OpenMetaBackup.m
static void StartOpenMetabackupsIfNeeded(void)
{
NSString* path = [@"~/Library/Application Support/OpenMeta/" stringByExpandingTildeInPath];
if (![[NSFileManager defaultManager] fileExistsAtPath:path])
gDoOpenMetaBackups = NO;
}
Shared recent tags, etc. These are shared through a preference file.
When starting up, I do much the same thing, and check for the existence of a shared prefs file, if its there, use it, else store the recently used tags in our own prefs file.
I call [self setupTaggingPrefs] in the app delegate at launch.
// For the apple app store, only use open meta prefs file if the file is there...
+(BOOL)openMetaPrefsFileExists;
{
NSString* prefFilePath = [@"~/Library/Preferences/com.openmeta.shared.plist" stringByExpandingTildeInPath];
if ([[NSFileManager defaultManager] fileExistsAtPath:prefFilePath])
return YES;
return NO;
}
-(void)setupTaggingPrefs;
{
if (![[self class] openMetaPrefsFileExists])
[OpenMetaPrefs setPrefsFile:@"com.ironic.yep"];
}
--Tom
On 2011-09-03, at 2:34 PM, Dominik Pich wrote:
what would I have to adapt to get ready for the appstore?