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/HBAudioDefaultsController.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/HBAudioDefaultsController.m')
-rw-r--r-- | macosx/HBAudioDefaultsController.m | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/macosx/HBAudioDefaultsController.m b/macosx/HBAudioDefaultsController.m index 31b8dee6c..dc693a3fc 100644 --- a/macosx/HBAudioDefaultsController.m +++ b/macosx/HBAudioDefaultsController.m @@ -12,13 +12,14 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex; @interface HBAudioDefaultsController () -@property (nonatomic, readonly) HBAudioDefaults *settings; +@property (nonatomic, readonly, strong) HBAudioDefaults *settings; -@property (nonatomic, readonly) HBLanguagesSelection *languagesList; -@property (assign) IBOutlet HBLanguageArrayController *tableController; -@property (assign) IBOutlet NSButton *showAllButton; +@property (nonatomic, readonly, strong) HBLanguagesSelection *languagesList; -@property (assign) IBOutlet NSArrayController *tracksController; +@property (unsafe_unretained) IBOutlet HBLanguageArrayController *tableController; +@property (unsafe_unretained) IBOutlet NSButton *showAllButton; + +@property (unsafe_unretained) IBOutlet NSArrayController *tracksController; @end @@ -29,7 +30,7 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex; self = [super initWithWindowNibName:@"AudioDefaults"]; if (self) { - _settings = [settings retain]; + _settings = settings; _languagesList = [[HBLanguagesSelection alloc] initWithLanguages:_settings.trackSelectionLanguages]; } return self; @@ -91,14 +92,11 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex; - (void)dealloc { - [_settings release]; - [_languagesList release]; @try { [self removeObserver:self forKeyPath:@"tableController.showSelectedOnly"]; } @catch (NSException * __unused exception) {} - [super dealloc]; } @end |