diff options
author | rowanbeentje <rowan@beent.je> | 2014-02-10 01:38:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2014-02-10 01:38:10 +0000 |
commit | 5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b (patch) | |
tree | 77acc8717172974934b8127a1121bf38fd7159e5 /Frameworks/PSMTabBar/PSMTabBarCell.m | |
parent | 38ca716543d7601a4e29823fb4578b96c599cf81 (diff) | |
download | sequelpro-5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b.tar.gz sequelpro-5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b.tar.bz2 sequelpro-5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b.zip |
Fix run-time warnings due to use of deprecated [NSImage compositeToPoint:...] operations
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarCell.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarCell.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarCell.m b/Frameworks/PSMTabBar/PSMTabBarCell.m index ab330c5c..003c1220 100644 --- a/Frameworks/PSMTabBar/PSMTabBarCell.m +++ b/Frameworks/PSMTabBar/PSMTabBarCell.m @@ -441,7 +441,8 @@ NSImage *pieImage = [[NSImage alloc] initByReferencingFile:[[PSMTabBarControl bundle] pathForImageResource:@"pi"]]; [image lockFocus]; NSPoint indicatorPoint = NSMakePoint([self frame].size.width - MARGIN_X - kPSMTabBarIndicatorWidth, MARGIN_Y); - [pieImage compositeToPoint:indicatorPoint operation:NSCompositeSourceOver fraction:1.0f]; + NSRect indicatorRect = NSMakeRect(indicatorPoint.x, indicatorPoint.y, [pieImage size].width, [pieImage size].height); + [pieImage drawInRect:indicatorRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f respectFlipped:YES hints:nil]; [image unlockFocus]; [pieImage release]; } |