From: masakih Date: Wed, 21 Oct 2015 11:10:54 +0000 (+0900) Subject: スクリーンショットをとった時にテスト用ログが出力される問題を修正 X-Git-Tag: 1.3b15.1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ca60c045b134644140d557c9d249cebfdb2ea580;p=kcd%2FKCD.git スクリーンショットをとった時にテスト用ログが出力される問題を修正 --- diff --git a/KCD/HMScreenshotListWindowController.m b/KCD/HMScreenshotListWindowController.m index d2731912..8d5c8bdb 100644 --- a/KCD/HMScreenshotListWindowController.m +++ b/KCD/HMScreenshotListWindowController.m @@ -220,7 +220,7 @@ { dispatch_queue_t queue = dispatch_queue_create("Screenshot queue", DISPATCH_QUEUE_SERIAL); dispatch_async(queue, ^{ - NSDate *date00 = [NSDate dateWithTimeIntervalSinceNow:0.0]; +// NSDate *date00 = [NSDate dateWithTimeIntervalSinceNow:0.0]; NSData *imageData = [image representationUsingType:NSJPEGFileType properties:@{}]; @@ -233,15 +233,15 @@ filename = [filename stringByAppendingPathExtension:@"jpg"]; NSString *path = [[self screenshotSaveDirectoryPath] stringByAppendingPathComponent:filename]; - NSDate *date01 = [NSDate dateWithTimeIntervalSinceNow:0.0]; +// NSDate *date01 = [NSDate dateWithTimeIntervalSinceNow:0.0]; path = [[NSFileManager defaultManager] _web_pathWithUniqueFilenameForPath:path]; - NSDate *date02 = [NSDate dateWithTimeIntervalSinceNow:0.0]; +// NSDate *date02 = [NSDate dateWithTimeIntervalSinceNow:0.0]; [imageData writeToFile:path atomically:YES]; - NSDate *date03 = [NSDate dateWithTimeIntervalSinceNow:0.0]; +// NSDate *date03 = [NSDate dateWithTimeIntervalSinceNow:0.0]; HMScreenshotInformation *info = [HMScreenshotInformation new]; info.path = path; @@ -254,14 +254,14 @@ [self.window makeKeyAndOrderFront:nil]; } - NSDate *date04 = [NSDate dateWithTimeIntervalSinceNow:0.0]; +// NSDate *date04 = [NSDate dateWithTimeIntervalSinceNow:0.0]; - NSLog(@"01 -> %lf\n02 -> %lf\n03 -> %lf\n04 -> %lf", - [date01 timeIntervalSinceDate:date00], - [date02 timeIntervalSinceDate:date01], - [date03 timeIntervalSinceDate:date02], - [date04 timeIntervalSinceDate:date03] - ); +// NSLog(@"01 -> %lf\n02 -> %lf\n03 -> %lf\n04 -> %lf", +// [date01 timeIntervalSinceDate:date00], +// [date02 timeIntervalSinceDate:date01], +// [date03 timeIntervalSinceDate:date02], +// [date04 timeIntervalSinceDate:date03] +// ); }); }