summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-04-22 16:49:30 +0000
committerritsuka <[email protected]>2015-04-22 16:49:30 +0000
commit1e990c1a5441c64ce2b985e019a814deecf74843 (patch)
tree7ed44d3ebff43d4a052bc9646fc5a06636e85347 /macosx/HBSubtitles.m
parent992a1ab264904b96ab5b396e5fd505a272589196 (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/HBSubtitles.m')
-rw-r--r--macosx/HBSubtitles.m15
1 files changed, 10 insertions, 5 deletions
diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m
index 740e16bcb..e03292620 100644
--- a/macosx/HBSubtitles.m
+++ b/macosx/HBSubtitles.m
@@ -10,7 +10,7 @@
#import "HBSubtitlesDefaults.h"
#import "HBTitle.h"
-#import "NSCodingMacro.h"
+#import "HBCodingUtilities.h"
#include "lang.h"
NSString *keySubTrackSelectionIndex = @"keySubTrackSelectionIndex";
@@ -484,6 +484,11 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
#pragma mark - NSCoding
++ (BOOL)supportsSecureCoding
+{
+ return YES;
+}
+
- (void)encodeWithCoder:(NSCoder *)coder
{
[coder encodeInt:1 forKey:@"HBAudioVersion"];
@@ -503,11 +508,11 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
decodeInt(_container);
- decodeObject(_masterTrackArray);
- decodeObject(_foreignAudioSearchTrackName);
- decodeObject(_tracks);
+ decodeObject(_masterTrackArray, NSMutableArray);
+ decodeObject(_foreignAudioSearchTrackName, NSString);
+ decodeObject(_tracks, NSMutableArray);
- decodeObject(_defaults);
+ decodeObject(_defaults, HBSubtitlesDefaults);
return self;
}