diff options
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r-- | macosx/HBPreferencesController.m | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index 8bbb58015..2419efd06 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -35,12 +35,12 @@ label: (NSString *)label image: (NSImage *)image; -@property (assign) IBOutlet NSTokenField *formatTokenField; -@property (assign) IBOutlet NSTokenField *builtInTokenField; -@property (nonatomic, readonly) NSArray *buildInFormatTokens; -@property (nonatomic, retain) NSArray *matches; +@property (unsafe_unretained) IBOutlet NSTokenField *formatTokenField; +@property (unsafe_unretained) IBOutlet NSTokenField *builtInTokenField; +@property (nonatomic, readonly, strong) NSArray *buildInFormatTokens; +@property (nonatomic, strong) NSArray *matches; -@property (nonatomic, retain) HBLanguagesSelection *languages; +@property (nonatomic, strong) HBLanguagesSelection *languages; @end @@ -100,12 +100,6 @@ return self; } -- (void)dealloc -{ - [_languages release]; - [super dealloc]; -} - - (void)showWindow:(id)sender { if (!self.window.isVisible) @@ -125,7 +119,7 @@ */ - (void) awakeFromNib { - NSToolbar * toolbar = [[[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"] autorelease]; + NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"]; [toolbar setDelegate: self]; [toolbar setAllowsUserCustomization: NO]; [toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel]; @@ -136,7 +130,7 @@ [self.formatTokenField setTokenizingCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@"%%"]]; [self.formatTokenField setCompletionDelay:0.2]; - _buildInFormatTokens = [@[@"{Source}", @"{Title}", @"{Date}", @"{Time}", @"{Chapters}", @"{Quality/Bitrate}"] retain]; + _buildInFormatTokens = @[@"{Source}", @"{Title}", @"{Date}", @"{Time}", @"{Chapters}", @"{Quality/Bitrate}"]; [self.builtInTokenField setTokenizingCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@"%%"]]; [self.builtInTokenField setStringValue:[self.buildInFormatTokens componentsJoinedByString:@"%%"]]; @@ -343,7 +337,7 @@ [item setImage:image]; [item setAction:@selector(setPrefView:)]; [item setAutovalidates:NO]; - return [item autorelease]; + return item; } @end |