You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ([[NSUserDefaultsstandardUserDefaults] respondsToSelector:@selector(setObject:forKey:inDomain:)])
243
-
[[NSUserDefaultsstandardUserDefaults] setObject:repositoryPath forKey:@"FScriptRepositoryPath"inDomain:NSGlobalDomain]; // This is an undocumented Cocoa API in Mac OS X 10.1
if ([[NSUserDefaultsstandardUserDefaults] respondsToSelector:@selector(setObject:forKey:inDomain:)])
251
+
[[NSUserDefaultsstandardUserDefaults] setObject:repositoryPath forKey:@"FScriptRepositoryPath"inDomain:NSGlobalDomain]; // This is an undocumented Cocoa API in Mac OS X 10.1
NSLog(@"Failed to create the repository in the user's \"Application Support\" directory.");
261
+
}
262
+
263
+
if (!repositoryCreated)
264
+
{
252
265
NSInteger choice = NSRunAlertPanel(@"Instalation" , @"F-Script is about to create a directory named \"FScriptRepository\" in your home directory. This directory will be used as a repository for things like extension bundles for F-Script and a journal file.", @"create the repository", @"don't create the repository", @"create the repository elsewhere...");
253
266
254
267
if (choice == NSAlertOtherReturn || choice == NSAlertDefaultReturn)
NSLog(@"Failed to create the repository: %@", error);
285
+
else
269
286
{
270
-
287
+
repositoryCreated = YES;
271
288
if ([[NSUserDefaultsstandardUserDefaults] respondsToSelector:@selector(setObject:forKey:inDomain:)])
272
289
[[NSUserDefaultsstandardUserDefaults] setObject:repositoryPath forKey:@"FScriptRepositoryPath"inDomain:NSGlobalDomain]; // This is an undocumented Cocoa API in Mac OS X 10.1
0 commit comments