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/HBAudioTrackPreset.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/HBAudioTrackPreset.m')
-rw-r--r-- | macosx/HBAudioTrackPreset.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/HBAudioTrackPreset.m b/macosx/HBAudioTrackPreset.m index f7f7f94bf..2e479f4fc 100644 --- a/macosx/HBAudioTrackPreset.m +++ b/macosx/HBAudioTrackPreset.m @@ -5,7 +5,7 @@ It may be used under the terms of the GNU General Public License. */ #import "HBAudioTrackPreset.h" -#import "NSCodingMacro.h" +#import "HBCodingUtilities.h" #include "hb.h" #define DEFAULT_SAMPLERATE 48000 @@ -262,6 +262,11 @@ static void *HBAudioEncoderContex = &HBAudioEncoderContex; #pragma mark - NSCoding ++ (BOOL)supportsSecureCoding +{ + return YES; +} + - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeInt:1 forKey:@"HBAudioTrackPresetVersion"]; |