diff options
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 |