diff options
author | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
commit | c762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch) | |
tree | e0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBCodingUtilities.m | |
parent | de7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (diff) |
MacGui: set the minimum deployment target to 10.10. Remove Growl and use macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
Diffstat (limited to 'macosx/HBCodingUtilities.m')
-rw-r--r-- | macosx/HBCodingUtilities.m | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/macosx/HBCodingUtilities.m b/macosx/HBCodingUtilities.m deleted file mode 100644 index 80e245a7b..000000000 --- a/macosx/HBCodingUtilities.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// HBCodingUtilities.m -// HandBrake -// -// Created by Damiano Galassi on 22/04/15. -// -// - -#import "HBCodingUtilities.h" - -static BOOL useSecureCoding; - -@implementation HBCodingUtilities - -+ (void)initialize -{ - static BOOL initialized = NO; - - if (!initialized && self == [HBCodingUtilities class]) - { - useSecureCoding = [NSCoder instancesRespondToSelector:@selector(decodeObjectOfClass:forKey:)] ? YES : NO; - } -} - -+ (id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key decoder:(NSCoder *)decoder -{ - if (useSecureCoding) - { - return [decoder decodeObjectOfClass:aClass forKey:key]; - } - else - { - id obj = [decoder decodeObjectForKey:key]; - if (![obj isKindOfClass:aClass]) - { - return nil; - } - else - { - return obj; - } - } -} - -+ (id)decodeObjectOfClasses:(NSSet *)classes forKey:(NSString *)key decoder:(NSCoder *)decoder -{ - if (useSecureCoding) - { - return [decoder decodeObjectOfClasses:classes forKey:key]; - } - else - { - id obj = [decoder decodeObjectForKey:key]; - return obj; - } -} - -@end |