Skip to content

Commit

Permalink
Migrated HBBPresets class to Objective-C 2.0 properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident committed Feb 5, 2013
1 parent ac95268 commit 79aef5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 2 additions & 6 deletions HandBrakeBatch/HBBPresets.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

#import <Foundation/Foundation.h>

@interface HBBPresets : NSObject

@interface HBBPresets : NSObject {
@private
NSDictionary *presets;
}

@property (assign) NSDictionary *presets;
@property (readonly, strong, nonatomic) NSDictionary *presets;

+ (id)hbbPresets;
- (void)initPresets;
Expand Down
7 changes: 6 additions & 1 deletion HandBrakeBatch/HBBPresets.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

#import "HBBPresets.h"

@interface HBBPresets ()

@property (readwrite, strong, nonatomic) NSDictionary *presets;

@end

@implementation HBBPresets
@synthesize presets;
Expand Down Expand Up @@ -98,7 +103,7 @@ - (void)initPresets {
}

// Initialize the preset dictionary
[self setPresets:tempDict];
self.presets = tempDict;
}

+ (id)hbbPresets {
Expand Down

0 comments on commit 79aef5f

Please sign in to comment.