diff --git a/Stockfish.xcodeproj/project.pbxproj b/Stockfish.xcodeproj/project.pbxproj index 1bc536a..9c58e50 100644 --- a/Stockfish.xcodeproj/project.pbxproj +++ b/Stockfish.xcodeproj/project.pbxproj @@ -703,9 +703,9 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.9; + MACOSX_DEPLOYMENT_TARGET = 10.8; ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; + SDKROOT = macosx10.8; }; name = Debug; }; @@ -735,8 +735,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.9; - SDKROOT = macosx; + MACOSX_DEPLOYMENT_TARGET = 10.8; + SDKROOT = macosx10.8; }; name = Release; }; @@ -849,9 +849,9 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.9; + MACOSX_DEPLOYMENT_TARGET = 10.8; ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; + SDKROOT = macosx10.8; }; name = Test; }; diff --git a/Stockfish/SFMArrowView.mm b/Stockfish/SFMArrowView.mm index dedebd1..9a4779d 100644 --- a/Stockfish/SFMArrowView.mm +++ b/Stockfish/SFMArrowView.mm @@ -23,7 +23,7 @@ - (void)drawRect:(NSRect)dirtyRect return; } - [[NSColor colorWithRed:1 green:0 blue:0 alpha:0.5] set]; + [[NSColor colorWithSRGBRed:1 green:0 blue:0 alpha:0.5] set]; CGFloat arrowLineWidth = self.squareSideLength * ARROW_LINE_WIDTH_AS_PERCENT_OF_SQUARE_WIDTH; diff --git a/Stockfish/SFMBoardView.mm b/Stockfish/SFMBoardView.mm index d6d3419..396ade8 100644 --- a/Stockfish/SFMBoardView.mm +++ b/Stockfish/SFMBoardView.mm @@ -114,11 +114,11 @@ - (id)initWithFrame:(NSRect)frame self.lightSquareColor = [NSColor whiteColor]; self.darkSquareColor = [NSColor brownColor]; self.fontColor = [NSColor whiteColor]; - self.highlightColor = [NSColor colorWithRed:1 green:1 blue:0 alpha:0.7]; + self.highlightColor = [NSColor colorWithSRGBRed:1 green:1 blue:0 alpha:0.7]; self.boardShadow = [NSShadow new]; [self.boardShadow setShadowBlurRadius:BOARD_SHADOW_BLUR_RADIUS]; - [self.boardShadow setShadowColor:[NSColor colorWithWhite:0 alpha:0.75]]; // Gray + [self.boardShadow setShadowColor:[NSColor colorWithGenericGamma22White:0 alpha:0.75]]; // Gray self.position = new Position([FEN_START_POSITION UTF8String]); diff --git a/Stockfish/SFMChessGame.mm b/Stockfish/SFMChessGame.mm index 3fddb75..a0081da 100644 --- a/Stockfish/SFMChessGame.mm +++ b/Stockfish/SFMChessGame.mm @@ -27,7 +27,7 @@ - (id)initWithWhite:(SFMPlayer *)p1 andBlack:(SFMPlayer *)p2 { self = [super init]; if (self) { - NSDateComponents *dateComponents = [[NSCalendar currentCalendar] components:NSCalendarUnitYear|NSCalendarUnitDay|NSCalendarUnitMonth fromDate:[NSDate new]]; + NSDateComponents *dateComponents = [[NSCalendar currentCalendar] components:kCFCalendarUnitYear|kCFCalendarUnitDay|kCFCalendarUnitMonth fromDate:[NSDate new]]; NSString *dateStr = [NSString stringWithFormat:@"%ld.%02ld.%02ld", (long)dateComponents.year, (long)dateComponents.month, (long)dateComponents.day]; NSDictionary *defaultTags = @{@"Event": @"Casual Game", @"Site": @"Earth", diff --git a/Stockfish/SFMPieceView.mm b/Stockfish/SFMPieceView.mm index 3c20733..49a03b9 100644 --- a/Stockfish/SFMPieceView.mm +++ b/Stockfish/SFMPieceView.mm @@ -29,7 +29,7 @@ - (id)initWithPieceType:(Chess::Piece)pieceType NSShadow *shadow = [NSShadow new]; [shadow setShadowBlurRadius:PIECE_SHADOW_BLUR_RADIUS]; - [shadow setShadowColor:[NSColor colorWithWhite:0 alpha:0.5]]; // Gray + [shadow setShadowColor:[NSColor colorWithGenericGamma22White:0 alpha:0.5]]; // Gray [self setShadow:shadow]; } return self; diff --git a/Stockfish/SFMWindowController.mm b/Stockfish/SFMWindowController.mm index 4a3a141..4d826c8 100644 --- a/Stockfish/SFMWindowController.mm +++ b/Stockfish/SFMWindowController.mm @@ -182,11 +182,11 @@ - (void)checkIfGameOver if (self.currentGame.currPosition->is_mate()) { NSString *resultText = (self.currentGame.currPosition->side_to_move() == WHITE) ? @"0-1" : @"1-0"; NSAlert *alert = [NSAlert alertWithMessageText:@"Game over!" defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:(self.currentGame.currPosition->side_to_move() == WHITE) ? @"Black wins." : @"White wins."]; - [alert beginSheetModalForWindow:self.window completionHandler:nil]; + [alert beginSheetModalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil]; self.currentGame.tags[@"Result"] = resultText; } else if (self.currentGame.currPosition->is_immediate_draw()) { NSAlert *alert = [NSAlert alertWithMessageText:@"Game over!" defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:@"It's a draw."]; - [alert beginSheetModalForWindow:self.window completionHandler:nil]; + [alert beginSheetModalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil]; self.currentGame.tags[@"Result"] = @"1/2-1/2"; } } @@ -431,7 +431,7 @@ - (NSString *)prettyPV:(NSString *)pvAsText } // And now, we add the arrow to the board - Move firstMove = ((SFMChessMove *)[pvMacMoveObjects firstObject]).move; + Move firstMove = ((SFMChessMove *) pvMacMoveObjects[0]).move; [self.boardView clearArrows]; [self.boardView addArrowFrom:move_from(firstMove) to:move_to(firstMove)]; diff --git a/Stockfish/Stockfish-Info.plist b/Stockfish/Stockfish-Info.plist index 68cde7a..ff5f514 100644 --- a/Stockfish/Stockfish-Info.plist +++ b/Stockfish/Stockfish-Info.plist @@ -42,11 +42,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.3 + 1.0.4 CFBundleSignature ???? CFBundleVersion - 13 + 14 LSApplicationCategoryType public.app-category.board-games LSMinimumSystemVersion diff --git a/Stockfish/stockfish-64 b/Stockfish/stockfish-64 index d8ee74b..a15237b 100755 Binary files a/Stockfish/stockfish-64 and b/Stockfish/stockfish-64 differ diff --git a/Stockfish/stockfish-sse42 b/Stockfish/stockfish-sse42 index 06e7050..1ac46c5 100755 Binary files a/Stockfish/stockfish-sse42 and b/Stockfish/stockfish-sse42 differ