Permalink
Browse files

Now searches in /Library/Developer for docsets (note ingredients is s…

…till unable to read non-apple docsets)
  • Loading branch information...
1 parent 859d5ba commit b6fe196f1f9c64933b42b99a7fbd5acba124f54a @atg atg committed Jan 19, 2011
Showing with 15 additions and 3 deletions.
  1. +13 −0 IGKLaunchController.m
  2. +2 −3 IGKScraper.m
View
@@ -95,6 +95,19 @@ - (BOOL)launch
[self applyDeveloperDirectory:devdir];
}
+ for (NSString *sharedPath in NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSAllDomainsMask, YES))
+ {
+ NSString *docsetSharedPath = [sharedPath stringByAppendingPathComponent:@"Developer/Shared/Documentation/DocSets"];
+ if ([[NSFileManager defaultManager] fileExistsAtPath:docsetSharedPath])
+ {
+ [self addDocsetsInPath:docsetSharedPath
+ toArray:docsetPaths
+ set:docsetPathsSet
+ developerDirectory:@"Shared"];
+ }
+ }
+
+
for (NSDictionary *description in [self developerDirectoryDescriptionsFromDefaults])
{
NSString *devdir = [description valueForKey:@"path"];
View
@@ -63,9 +63,8 @@ - (BOOL)findPaths
//Register it with preferences
int result = [[NSClassFromString(@"IGKPreferencesController") sharedPreferencesController] addDocsetWithPath:[docsetURL path]
- localizedUserInterfaceName:localizedUserInterfaceName
- developerDirectory:developerDirectory];
-
+ localizedUserInterfaceName:localizedUserInterfaceName
+ developerDirectory:developerDirectory];
/*
if result == -1
No docset already exists

0 comments on commit b6fe196

Please sign in to comment.