Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 81 lines (58 sloc) 1.971 kb
46db79b @fileability Added searching on launch
authored
1 //
2 // IGKScraper.h
3 // Ingredients
4 //
5 // Created by Alex Gordon on 24/01/2010.
f109712 @fileability Adjusted things
authored
6 // Written in 2010 by Fileability.
46db79b @fileability Added searching on launch
authored
7 //
8
9 #import <Cocoa/Cocoa.h>
10
2261636 @fileability I`ve made a lot of changes to first launch and indexing. Code`s very …
authored
11 @class IGKLaunchController;
9cae603 @fileability Restructured full parsing
authored
12 @class IGKDocRecordManagedObject;
46db79b @fileability Added searching on launch
authored
13
14 //A scraper takes a .docset and populates a core data database
15
16 @interface IGKScraper : NSObject
17 {
32721f4 @fileability Speed improvements in DB
authored
18 NSString *docsetpath;
8ef46f0 @fileability Now only rescans a docset if it needs to
authored
19 NSURL *docsetURL;
46db79b @fileability Added searching on launch
authored
20 NSURL *url;
21 NSManagedObjectContext *ctx;
2261636 @fileability I`ve made a lot of changes to first launch and indexing. Code`s very …
authored
22
23 IGKLaunchController *launchController;
24 dispatch_queue_t dbQueue;
25
26 NSUInteger pathsCount;
27 NSUInteger pathsCounter;
28
29 NSMutableArray *paths;
30 NSManagedObject *scraperDocset;
80ca35a @fileability Added docset management
authored
31
32 NSString *developerDirectory;
46db79b @fileability Added searching on launch
authored
33 }
34
375b125 Now does deprecated methods... sorta
Alex Gordon authored
35 - (id)initWithDocsetURL:(NSURL *)theDocsetURL managedObjectContext:(NSManagedObjectContext *)moc launchController:(IGKLaunchController*)lc dbQueue:(dispatch_queue_t)dbq developerDirectory:(NSString *)devDir;
300be1b @fileability ...
authored
36
37 - (void)findPathCount;
38 - (BOOL)findPaths;
39 - (void)index;
46db79b @fileability Added searching on launch
authored
40
41 @end
9cae603 @fileability Restructured full parsing
authored
42
43
44
45 @interface IGKFullScraper : NSObject
46 {
47 IGKDocRecordManagedObject *persistobj;
48
49 IGKDocRecordManagedObject *transientObject;
50 NSManagedObjectContext *transientContext;
51
52 //We use instance variables in IGKFullScraper as a way of maintaining state without passing arguments
53 NSManagedObject *docset;
54 NSXMLDocument *doc;
bdcaeff @fileability TURTLES
authored
55
4479775 Speed improvements
Alex Gordon authored
56 NSArray *methodNodes;
57
40e83ef Added a strikethrough for deprecated methods
Alex Gordon authored
58 BOOL isParsingDeprecatedAppendix;
59
bdcaeff @fileability TURTLES
authored
60 //Some caching of entities
61 NSEntityDescription *ObjCMethodEntity;
4a07516 @fileability Better indexing
authored
62 NSEntityDescription *ObjCNotificationEntity;
bdcaeff @fileability TURTLES
authored
63 NSEntityDescription *ParameterEntity;
7ca6a58 @fileability Full method scraping and generation http://www.fileability.net/snaps/…
authored
64 NSEntityDescription *SeeAlsoEntity;
65 NSEntityDescription *SampleCodeProjectEntity;
d79d3d3 Added some tasks that dont do anything useful
Alex Gordon authored
66 NSEntityDescription *MetaTaskGroupEntity;
67 NSEntityDescription *MetaTaskGroupItemEntity;
c6d1aaa Bindings are working sorta not really!
Alex Gordon authored
68 NSEntityDescription *ObjCBindingEntity;
69 NSEntityDescription *ObjCBindingOptionEntity;
70 NSEntityDescription *ObjCBindingPlaceholderEntity;
9cae603 @fileability Restructured full parsing
authored
71 }
72
73 @property (readonly) NSManagedObject *transientObject;
74 @property (readonly) NSManagedObjectContext *transientContext;
75
76 - (id)initWithManagedObject:(IGKDocRecordManagedObject *)persistentObject;
77 - (void)start;
78
79 - (void)cleanUp;
80
81 @end
Something went wrong with that request. Please try again.