Skip to content

Commit

Permalink
removed nslogs
Browse files Browse the repository at this point in the history
  • Loading branch information
atg committed Apr 13, 2010
1 parent 7f6d1da commit 41faabb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 3 additions & 12 deletions IGKPreferencesController.m
Expand Up @@ -104,19 +104,15 @@ - (void)reloadTableViews
#pragma mark Docsets Logic

- (void)selectedFilterDocsetForPath:(NSString *)path
{
NSLog(@"path = %@", path);

{
BOOL changedSomething = NO;

for (NSDictionary *docset in [docsets copy])
{
BOOL isDocset = [[docset valueForKey:@"path"] isEqual:path];

if ([[docset valueForKey:@"isSelected"] boolValue] != isDocset)
{
NSLog(@"Changing %@", docset);

{
NSDictionary *newDocset = [docset mutableCopy];
[newDocset setValue:[NSNumber numberWithBool:isDocset] forKey:@"isSelected"];

Expand All @@ -126,7 +122,6 @@ - (void)selectedFilterDocsetForPath:(NSString *)path
}
}

NSLog(@"changedSomething = %d", changedSomething);
if (changedSomething)
{
[self saveChangesNeedsRelaunch:NO];
Expand All @@ -137,7 +132,6 @@ - (void)selectedFilterDocsetForPath:(NSString *)path

- (NSString *)selectedFilterDocsetPath
{
NSLog(@"docsets = %@", docsets);
for (NSDictionary *docset in docsets)
{
if ([[docset valueForKey:@"isSelected"] boolValue])
Expand Down Expand Up @@ -276,13 +270,10 @@ - (IBAction)relaunch:(id)sender
// Copy the relauncher into a temporary directory so we can get to it after the new version's installed.
NSString *relaunchPath = nil;
NSString *relaunchPathToCopy = [[NSBundle bundleForClass:SUUpdaterClass] pathForResource:@"relaunch" ofType:@""];
NSLog(@"relaunchPathToCopy = %@", relaunchPathToCopy);
if (![relaunchPathToCopy length])
return;

NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]];
NSLog(@"targetPath = %@", targetPath);

NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]];
if (![targetPath length])
return;

Expand Down
4 changes: 1 addition & 3 deletions IGKWindowController.m
Expand Up @@ -297,9 +297,7 @@ - (void)didFinishIndexingOrLoadingDelayed
for (NSMenuItem *m in [docsetsFilterPopupButton itemArray])
{
if ([m representedObject] == docset)
{
NSLog(@"Found an item");

{
[docsetsFilterPopupButton selectItem:m];
}
}
Expand Down

0 comments on commit 41faabb

Please sign in to comment.