aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPImageView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPImageView.m')
-rw-r--r--Source/SPImageView.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPImageView.m b/Source/SPImageView.m
index 23e95859..d56b7fa5 100644
--- a/Source/SPImageView.m
+++ b/Source/SPImageView.m
@@ -72,7 +72,7 @@
NSData *pngData = nil;
NSBitmapImageRep *draggedImage = [[NSBitmapImageRep alloc] initWithData:[[sender draggingPasteboard] dataForType:@"NSTIFFPboardType"]];
if (draggedImage) {
- pngData = [draggedImage representationUsingType:NSPNGFileType properties:nil];
+ pngData = [draggedImage representationUsingType:NSPNGFileType properties:@{}];
[draggedImage release];
}
if (pngData) {
@@ -91,7 +91,7 @@
[draggedImage drawInRect:[draggedImage boundingBox]];
NSBitmapImageRep *bitmapImageRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:[draggedImage boundingBox]];
if (bitmapImageRep) {
- pngData = [bitmapImageRep representationUsingType:NSPNGFileType properties:nil];
+ pngData = [bitmapImageRep representationUsingType:NSPNGFileType properties:@{}];
[bitmapImageRep release];
}
[convertImage unlockFocus];