Revision: 15515
http://sourceforge.net/p/skim-app/code/15515
Author: hofman
Date: 2025-06-20 22:12:44 +0000 (Fri, 20 Jun 2025)
Log Message:
-----------
Add downloads directory to initial values dict
Modified Paths:
--------------
trunk/SKApplicationController.m
Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m 2025-06-20 21:45:33 UTC (rev 15514)
+++ trunk/SKApplicationController.m 2025-06-20 22:12:44 UTC (rev 15515)
@@ -137,14 +137,14 @@
[initialValuesDict setValue:NSFullUserName() forKey:SKUserNameKey];
+ NSURL *downloadsURL = [[NSFileManager defaultManager]
URLForDirectory:NSDownloadsDirectory inDomain:NSUserDomainMask
appropriateForURL:nil create:YES error:NULL];
+ if (downloadsURL)
+ [initialValuesDict setValue:[[downloadsURL path]
stringByAbbreviatingWithTildeInPath] forKey:SKDownloadsDirectoryKey];
+
// set them in the standard user defaults
[[NSUserDefaults standardUserDefaults] registerDefaults:initialValuesDict];
- NSURL *downloadsURL = [[NSFileManager defaultManager]
URLForDirectory:NSDownloadsDirectory inDomain:NSUserDomainMask
appropriateForURL:nil create:YES error:NULL];
- if (downloadsURL)
- [[NSUserDefaults standardUserDefaults]
registerDefaults:@{SKDownloadsDirectoryKey:[[downloadsURL path]
stringByAbbreviatingWithTildeInPath]}];
-
- // if your application supports resetting a subset of the defaults to
+ // if your application supports resetting a subset of the defaults to
// factory values, you should set those values
// in the shared user defaults controller
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit