summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/PSMTabDragView.m')
-rw-r--r--frontends/cocoa/PSMTabBarControl/PSMTabDragView.m16
1 files changed, 4 insertions, 12 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m b/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
index 2c9781dbc..8f901646c 100644
--- a/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
+++ b/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
@@ -18,12 +18,6 @@
return self;
}
-- (void)dealloc {
- [_image release];
- [_alternateImage release];
- [super dealloc];
-}
-
- (void)drawRect:(NSRect)rect {
//1.0 fade means show the primary image
//0.0 fade means show the secondary image
@@ -32,9 +26,9 @@
srcRect.origin = NSZeroPoint;
srcRect.size = [_image size];
- [_image drawInRect:[self bounds] fromRect:srcRect operation:NSCompositeSourceOver fraction:primaryAlpha];
+ [_image drawInRect:[self bounds] fromRect:srcRect operation:NSCompositingOperationSourceOver fraction:primaryAlpha];
srcRect.size = [_alternateImage size];
- [_alternateImage drawInRect:[self bounds] fromRect:srcRect operation:NSCompositeSourceOver fraction:alternateAlpha];
+ [_alternateImage drawInRect:[self bounds] fromRect:srcRect operation:NSCompositingOperationSourceOver fraction:alternateAlpha];
}
- (void)setFadeValue:(CGFloat)value {
@@ -46,8 +40,7 @@
}
- (void)setImage:(NSImage *)image {
- [_image release];
- _image = [image retain];
+ _image = image;
}
- (NSImage *)alternateImage {
@@ -55,8 +48,7 @@
}
- (void)setAlternateImage:(NSImage *)image {
- [_alternateImage release];
- _alternateImage = [image retain];
+ _alternateImage = image;
}
@end