summaryrefslogtreecommitdiffstats
path: root/macosx/HBDockTile.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-03-17 13:56:21 +0000
committerritsuka <[email protected]>2015-03-17 13:56:21 +0000
commit48a9e546878ae074202e0301f428193b7915d68f (patch)
treecf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBDockTile.m
parent220bd888e05696acbe1dd47f96ded78c389fc27f (diff)
MacGui: convert the mac gui to Objective-C ARC.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBDockTile.m')
-rw-r--r--macosx/HBDockTile.m23
1 files changed, 6 insertions, 17 deletions
diff --git a/macosx/HBDockTile.m b/macosx/HBDockTile.m
index bfbed37b7..f03e2fdff 100644
--- a/macosx/HBDockTile.m
+++ b/macosx/HBDockTile.m
@@ -13,10 +13,10 @@ NSString *dockTilePercentFormat = @"%2.1f%%";
@interface HBDockTile ()
-@property (nonatomic, retain) NSDockTile *dockTile;
-@property (nonatomic, retain) NSImage *image;
-@property (nonatomic, retain) DockTextField * percentField;
-@property (nonatomic, retain) DockTextField * timeField;
+@property (nonatomic, strong) NSDockTile *dockTile;
+@property (nonatomic, strong) NSImage *image;
+@property (nonatomic, strong) DockTextField * percentField;
+@property (nonatomic, strong) DockTextField * timeField;
@end
@@ -27,8 +27,8 @@ NSString *dockTilePercentFormat = @"%2.1f%%";
self = [super init];
if (self)
{
- _dockTile = [dockTile retain];
- _image = [image retain];
+ _dockTile = dockTile;
+ _image = image;
NSImageView *iv = [[NSImageView alloc] init];
[iv setImage:_image];
@@ -41,21 +41,10 @@ NSString *dockTilePercentFormat = @"%2.1f%%";
_timeField = [[DockTextField alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, [dockTile size].width, 30.0f)];
[_timeField changeGradientColors:[NSColor colorWithDeviceRed:0.6f green:0.4f blue:0.4f alpha:1.0f] endColor:[NSColor colorWithDeviceRed:0.4f green:0.2f blue:0.2f alpha:1.0f]];
[iv addSubview:_timeField];
- [iv release];
}
return self;
}
-- (void)dealloc
-{
- [_dockTile release];
- [_image release];
- [_percentField release];
- [_timeField release];
-
- [super dealloc];
-}
-
- (void)updateDockIcon:(double)progress withETA:(NSString *)etaStr
{
if (progress < 0.0 || progress > 1.0)