diff options
author | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
commit | 48a9e546878ae074202e0301f428193b7915d68f (patch) | |
tree | cf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBVideoController.m | |
parent | 220bd888e05696acbe1dd47f96ded78c389fc27f (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/HBVideoController.m')
-rw-r--r-- | macosx/HBVideoController.m | 12 |
1 files changed, 6 insertions, 6 deletions
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}]; } |