Skip to content

Commit

Permalink
Update some apis/constants for the minOS update.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Sep 26, 2024
1 parent 855d3a8 commit a148611
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AppKit/GTMFadeTruncatingTextFieldCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (void)drawTextGradientPart:(NSAttributedString *)attributedString
// suboptimal, but since it fades out, that's ok.
[NSGraphicsContext saveGraphicsState];
[NSBezierPath clipRect:backgroundRect];
CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
CGContextRef context = [[NSGraphicsContext currentContext] CGContext];
CGContextBeginTransparencyLayerWithRect(context,
NSRectToCGRect(backgroundRect), 0);

Expand Down
4 changes: 2 additions & 2 deletions AppKit/GTMNSBezierPath+CGPathTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)testCGPath {
hasAlpha:YES
isPlanar:NO
colorSpaceName:NSDeviceRGBColorSpace
bitmapFormat:NSAlphaFirstBitmapFormat
bitmapFormat:NSBitmapFormatAlphaFirst
bytesPerRow:0
bitsPerPixel:0] autorelease];

Expand Down Expand Up @@ -73,7 +73,7 @@ - (void)testCGPath {
CGPathRef cgPath = [thePath gtm_CGPath];
XCTAssertNotNULL(cgPath, @"Nil CGPath");

CGContextRef cgContext = [nsContext graphicsPort];
CGContextRef cgContext = [nsContext CGContext];
XCTAssertNotNULL(cgContext, @"Nil cgContext");

CGContextAddPath(cgContext, cgPath);
Expand Down
2 changes: 1 addition & 1 deletion AppKit/GTMNSBezierPath+RoundRectTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)testRoundRects {
hasAlpha:YES
isPlanar:NO
colorSpaceName:NSDeviceRGBColorSpace
bitmapFormat:NSAlphaFirstBitmapFormat
bitmapFormat:NSBitmapFormatAlphaFirst
bytesPerRow:0
bitsPerPixel:0] autorelease];

Expand Down

1 comment on commit a148611

@Andarina
Copy link

@Andarina Andarina commented on a148611 Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git commit

Please sign in to comment.