diff options
author | ritsuka <[email protected]> | 2015-04-22 16:49:30 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-04-22 16:49:30 +0000 |
commit | 1e990c1a5441c64ce2b985e019a814deecf74843 (patch) | |
tree | 7ed44d3ebff43d4a052bc9646fc5a06636e85347 /macosx/HBSubtitlesDefaults.m | |
parent | 992a1ab264904b96ab5b396e5fd505a272589196 (diff) |
MacGui: implemented the NSSecureCoding protocol in HBJob. Added a compatibility class to fall back on NSCoding on 10.7 and earlier.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7112 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBSubtitlesDefaults.m')
-rw-r--r-- | macosx/HBSubtitlesDefaults.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macosx/HBSubtitlesDefaults.m b/macosx/HBSubtitlesDefaults.m index 834417572..be607e95a 100644 --- a/macosx/HBSubtitlesDefaults.m +++ b/macosx/HBSubtitlesDefaults.m @@ -5,7 +5,7 @@ It may be used under the terms of the GNU General Public License. */ #import "HBSubtitlesDefaults.h" -#import "NSCodingMacro.h" +#import "HBCodingUtilities.h" @implementation HBSubtitlesDefaults @@ -127,6 +127,11 @@ #pragma mark - NSCoding ++ (BOOL)supportsSecureCoding +{ + return YES; +} + - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeInt:1 forKey:@"HBSubtitlesDefaultsVersion"]; @@ -148,7 +153,7 @@ self = [super init]; decodeInteger(_trackSelectionBehavior); - decodeObject(_trackSelectionLanguages); + decodeObject(_trackSelectionLanguages, NSMutableArray); decodeBool(_addForeignAudioSearch); decodeBool(_addForeignAudioSubtitle); |