Transition to ARC

This commit is contained in:
Dmitry Serov
2017-07-29 23:14:22 +07:00
parent 6c30359beb
commit 845dfe6017
63 changed files with 335 additions and 767 deletions

View File

@@ -33,15 +33,13 @@
fSelected = NO;
//expects the icon to currently be set as the image
fIcon = [[self image] retain];
fIcon = [self image];
}
- (void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
[fIcon release];
[super dealloc];
}
- (void) setControlView: (NSView *) controlView
@@ -96,7 +94,6 @@
tabRect = NSMakeRect(0.0, 1.0, NSWidth(tabRect) - 1.0, NSHeight(tabRect) - 2.0);
[gradient drawInRect: tabRect angle: 270.0];
[gradient release];
if (fIcon)
{
@@ -112,7 +109,6 @@
[tabImage unlockFocus];
[self setImage: tabImage];
[tabImage release];
}
- (void) updateControlTint: (NSNotification *) notification