Skip to content
This repository
Browse code

1.1b1

  • Loading branch information...
commit 3cd03991ba336a0f006353c2f83fa8a641bd1009 1 parent 280d9f9
Alex Gordon authored April 25, 2011
9  IGKApplicationDelegate.mm
@@ -78,7 +78,9 @@ - (id)init
78 78
 		
79 79
 		if (docsetCount > 0)
80 80
 		{
81  
-			[self newWindowIsIndexing:applicationIsIndexing];
  81
+			[self performSelector:@selector(newWindowIsIndexingNumber:) withObject:[NSNumber numberWithBool:applicationIsIndexing] afterDelay:0.0];
  82
+			
  83
+			//[self newWindowIsIndexing:applicationIsIndexing];
82 84
 		}
83 85
 		else
84 86
 		{
@@ -104,6 +106,10 @@ - (id)init
104 106
 	return self;
105 107
 }
106 108
 
  109
+- (void)newWindowIsIndexingNumber:(NSNumber *)isIndexing
  110
+{
  111
+	[self newWindowIsIndexing:[isIndexing boolValue]];
  112
+}
107 113
 - (BOOL)applicationIsIndexing
108 114
 {
109 115
 	return applicationIsIndexing;
@@ -209,6 +215,7 @@ - (id)newWindowIsIndexing:(BOOL)isIndexing
209 215
 	//[windowController newTabShouldIndex:isIndexing];
210 216
 	//[windowController showWindow:nil];
211 217
 	
  218
+	
212 219
 	IGKWindowController* windowController = [[IGKWindowController alloc] initWithBrowser:[IGKTabBrowser browser]];
213 220
 	windowController.appDelegate = self;
214 221
 	[windowController.browser addBlankTabInForeground:YES];
3  IGKArrayController.m
@@ -57,7 +57,6 @@ - (void)fetch:(void (^)(NSArray *managedObjectIDs, BOOL fetchContainsVip))comple
57 57
 	
58 58
 	dispatch_async(queue, ^{
59 59
 		
60  
-		NSLog(@"Predicate! %@ >>> %@", predicateString, predicateParameters);
61 60
 		if (predicateString && predicateParameters && !predicate)
62 61
 		{
63 62
 			 
@@ -66,10 +65,8 @@ - (void)fetch:(void (^)(NSArray *managedObjectIDs, BOOL fetchContainsVip))comple
66 65
 			id fu = [ctx fffffffuuuuuuuuuuuu];
67 66
 			
68 67
 			// Replace predicateString with a WHERE clause and predicateParameters with the values of the ? placeholders in it
69  
-			NSLog(@"sqlq = %@", sqlq);
70 68
 			FMResultSet *rset = [[fu database] executeQuery:sqlq withArgumentsInArray:predicateParameters];
71 69
 			id objects = [fu magicObjectsForResultSet:rset];
72  
-			NSLog(@"objects = %d | %@", [objects count], objects);
73 70
 			[rset close];
74 71
 			
75 72
 			
11  IGKTabController.mm
@@ -90,9 +90,10 @@ - (id)initWithBaseTabContents:(CTTabContents*)baseContents
90 90
 		[browserSplitView setColorIsEnabled:YES];
91 91
 		[browserSplitView setColor:[NSColor colorWithCalibratedWhite:0.549 alpha:1.0]];
92 92
 		
93  
-		[self performSelector:@selector(someTimeLater) withObject:nil afterDelay:0.0];
94  
-		
95  
-		NSLog(@"contentView = %@", contentView);
  93
+		if (![[[NSApplication sharedApplication] delegate] kitController])
  94
+			[self performSelector:@selector(someTimeLater) withObject:nil afterDelay:0.0];
  95
+		else
  96
+			[self windowDidLoad];
96 97
 	}
97 98
 	
98 99
 	return self;
@@ -220,9 +221,7 @@ - (void)windowDidLoad
220 221
 	
221 222
 	BOOL didIndex = YES;
222 223
 	
223  
-	shouldIndex = [[[[NSApplication sharedApplication] delegate] kitController] applicationIsIndexing];
224  
-	NSLog(@"%@ %@ | %@ %@ | shouldIndex = %d", NSApp, [NSApplication sharedApplication], [NSApp delegate], [[NSApp delegate] kitController], shouldIndex);
225  
-	
  224
+	shouldIndex = [[[[NSApplication sharedApplication] delegate] kitController] applicationIsIndexing];	
226 225
 	if (shouldIndex)
227 226
 		[self startIndexing];
228 227
 	else
2  Ingredients-Info.plist
@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleVersion</key>
22 22
 	<string>1.0</string>
23 23
 	<key>CFBundleShortVersionString</key>
24  
-	<string>1.0</string>
  24
+	<string>1.1b1</string>
25 25
 	<key>LSMinimumSystemVersion</key>
26 26
 	<string>${MACOSX_DEPLOYMENT_TARGET}</string>
27 27
 	<key>NSMainNibFile</key>
2  Ingredients_AppDelegate.m
@@ -42,7 +42,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
42 42
 	srandom((unsigned long)[NSDate timeIntervalSinceReferenceDate]);
43 43
 		
44 44
 	[NSApp setServicesProvider:self];
45  
-	[kitController showWindow:nil];
  45
+	//[kitController showWindow:nil];
46 46
 	
47 47
 	NSUpdateDynamicServices();
48 48
 }

0 notes on commit 3cd0399

Please sign in to comment.
Something went wrong with that request. Please try again.