summaryrefslogtreecommitdiffstats
path: root/macosx/HBTitleSelectionController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-03-17 13:56:21 +0000
committerritsuka <[email protected]>2015-03-17 13:56:21 +0000
commit48a9e546878ae074202e0301f428193b7915d68f (patch)
treecf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBTitleSelectionController.m
parent220bd888e05696acbe1dd47f96ded78c389fc27f (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/HBTitleSelectionController.m')
-rw-r--r--macosx/HBTitleSelectionController.m15
1 files changed, 2 insertions, 13 deletions
diff --git a/macosx/HBTitleSelectionController.m b/macosx/HBTitleSelectionController.m
index 814c78991..e7d4d4a70 100644
--- a/macosx/HBTitleSelectionController.m
+++ b/macosx/HBTitleSelectionController.m
@@ -12,7 +12,7 @@
@property (nonatomic, readonly) NSArray *titles;
@property (nonatomic, readonly) NSMutableArray *selection;
-@property (nonatomic, readonly) id<HBTitleSelectionDelegate> delegate;
+@property (nonatomic, readonly, unsafe_unretained) id<HBTitleSelectionDelegate> delegate;
@end
@@ -23,7 +23,7 @@
self = [super initWithWindowNibName:@"HBTitleSelection"];
if (self)
{
- _titles = [titles retain];
+ _titles = titles;
_selection = [[NSMutableArray alloc] initWithCapacity:titles.count];
_delegate = delegate;
@@ -36,17 +36,6 @@
return self;
}
-- (void)dealloc
-{
- [_titles release];
- _titles = nil;
-
- [_selection release];
- _selection = nil;
-
- [super dealloc];
-}
-
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
{
return self.titles.count;