From cd2071675010ba2ac853db20bd5a19a46e043636 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Wed, 6 Jan 2016 14:58:34 +0100 Subject: [PATCH] Fix using NSGraphicsContext in creating a CGImage in NSImage category --- Pod/Classes/Categories/PINImage+DecodedImage.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pod/Classes/Categories/PINImage+DecodedImage.m b/Pod/Classes/Categories/PINImage+DecodedImage.m index 31a935e..ae8095b 100644 --- a/Pod/Classes/Categories/PINImage+DecodedImage.m +++ b/Pod/Classes/Categories/PINImage+DecodedImage.m @@ -21,7 +21,7 @@ - (CGImageRef)CGImage { - NSGraphicsContext *context = [[NSGraphicsContext currentContext] graphicsPort]; + NSGraphicsContext *context = [NSGraphicsContext currentContext]; NSRect rect = NSMakeRect(0.0, 0.0, self.size.width, self.size.height); return [self CGImageForProposedRect:&rect context:context hints:NULL]; }