From 48a9e546878ae074202e0301f428193b7915d68f Mon Sep 17 00:00:00 2001 From: ritsuka Date: Tue, 17 Mar 2015 13:56:21 +0000 Subject: MacGui: convert the mac gui to Objective-C ARC. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBVideoController.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'macosx/HBVideoController.m') diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index 16b1c6d7e..0ffc87b5d 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -36,8 +36,8 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; IBOutlet NSTextField *fDisplayX264PresetsUnparseTextField; } -@property (nonatomic, retain, readwrite) HBAdvancedController *advancedController; -@property (nonatomic, readwrite, assign) HBVideo *video; +@property (nonatomic, strong, readwrite) HBAdvancedController *advancedController; +@property (nonatomic, readwrite, unsafe_unretained) HBVideo *video; @property (nonatomic, readwrite) BOOL presetViewEnabled; @@ -52,7 +52,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; self = [self init]; if (self) { - _advancedController = [advancedController retain]; + _advancedController = advancedController; } return self; } @@ -62,7 +62,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; self = [super initWithNibName:@"Video" bundle:nil]; if (self) { - _labelColor = [[NSColor disabledControlTextColor] retain]; + _labelColor = [NSColor disabledControlTextColor]; // Observe the advanced tab pref shown/hided state. [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self @@ -196,7 +196,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; // Replace the slider transformer with a new one, // configured with the new max/min/direction values. [fVidQualitySlider unbind:@"value"]; - HBQualityTransformer *transformer = [[[HBQualityTransformer alloc] initWithReversedDirection:(direction != 0) min:minValue max:maxValue] autorelease]; + HBQualityTransformer *transformer = [[HBQualityTransformer alloc] initWithReversedDirection:(direction != 0) min:minValue max:maxValue]; [fVidQualitySlider bind:@"value" toObject:self withKeyPath:@"self.video.quality" options:@{NSValueTransformerBindingOption: transformer}]; } @@ -280,7 +280,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; // Bind the slider value to a custom value transformer, // done here because it can't be done in IB. [fPresetsSlider unbind:@"value"]; - HBPresetsTransformer *transformer = [[[HBPresetsTransformer alloc] initWithEncoder:self.video.encoder] autorelease]; + HBPresetsTransformer *transformer = [[HBPresetsTransformer alloc] initWithEncoder:self.video.encoder]; [fPresetsSlider bind:@"value" toObject:self withKeyPath:@"self.video.preset" options:@{NSValueTransformerBindingOption: transformer}]; } -- cgit v1.2.3