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/HBPresetsViewController.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/HBPresetsViewController.m')
-rw-r--r-- | macosx/HBPresetsViewController.m | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m index c5df7e6fb..aab6e29f5 100644 --- a/macosx/HBPresetsViewController.m +++ b/macosx/HBPresetsViewController.m @@ -13,20 +13,20 @@ @interface HBPresetsViewController () <NSOutlineViewDelegate> -@property (nonatomic, retain) HBPresetsManager *presets; -@property (nonatomic, assign) IBOutlet NSTreeController *treeController; +@property (nonatomic, strong) HBPresetsManager *presets; +@property (nonatomic, unsafe_unretained) IBOutlet NSTreeController *treeController; /** * Helper var for drag & drop */ -@property (nonatomic, retain) NSArray *dragNodesArray; +@property (nonatomic, strong) NSArray *dragNodesArray; /** * The status (expanded or not) of the folders. */ -@property (nonatomic, retain) NSMutableArray *expandedNodes; +@property (nonatomic, strong) NSMutableArray *expandedNodes; -@property (assign) IBOutlet NSOutlineView *outlineView; +@property (unsafe_unretained) IBOutlet NSOutlineView *outlineView; @end @@ -39,22 +39,13 @@ self = [super initWithNibName:@"Presets" bundle:nil]; if (self) { - _presets = [presetManager retain]; + _presets = presetManager; _expandedNodes = [[NSArray arrayWithArray:[[NSUserDefaults standardUserDefaults] objectForKey:@"HBPreviewViewExpandedStatus"]] mutableCopy]; } return self; } -- (void)dealloc -{ - self.presets = nil; - self.dragNodesArray = nil; - self.expandedNodes = nil; - - [super dealloc]; -} - - (void)loadView { [super loadView]; @@ -135,7 +126,6 @@ HBPreset *node = [[HBPreset alloc] initWithFolderName:@"New Folder" builtIn:NO]; [self.treeController insertObject:node atArrangedObjectIndexPath:selectionIndexPath]; - [node autorelease]; } - (IBAction)setDefault:(id)sender |