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/Styles/PSMAdiumTabStyle.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/Styles/PSMAdiumTabStyle.m')
-rw-r--r-- | Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m index 3bda9cf5..758ebe21 100644 --- a/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m @@ -623,13 +623,9 @@ closeButtonOrIcon = ([cell isEdited] ? _closeDirtyButton : _closeButton); drawingRect = closeButtonRect; } - - if ([controlView isFlipped]) { - drawingRect.origin.y += drawingRect.size.height; - } - [closeButtonOrIcon compositeToPoint:drawingRect.origin operation:NSCompositeSourceOver fraction:1.0]; - + [closeButtonOrIcon drawInRect:drawingRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f respectFlipped:YES hints:nil]; + // scoot label over switch (orientation) { @@ -662,12 +658,8 @@ NSRect iconRect = [self iconRectForTabCell:cell]; NSImage *icon = [[[cell representedObject] identifier] icon]; - if ([controlView isFlipped]) { - iconRect.origin.y += iconRect.size.height; - } + [icon drawInRect:iconRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f respectFlipped:YES hints:nil]; - [icon compositeToPoint:iconRect.origin operation:NSCompositeSourceOver fraction:1.0]; - // scoot label over by the size of the standard close button switch (orientation) { |