summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBCodingUtilities.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBCodingUtilities.m b/macosx/HBCodingUtilities.m
index b6b97dce6..a87ad3f7a 100644
--- a/macosx/HBCodingUtilities.m
+++ b/macosx/HBCodingUtilities.m
@@ -18,7 +18,7 @@ static BOOL useSecureCoding;
if (!initialized && self == [HBCodingUtilities class])
{
- useSecureCoding = NSProtocolFromString(@"NSSecureCoding") ? YES : NO;
+ useSecureCoding = [NSCoder instancesRespondToSelector:@selector(decodeObjectOfClass:forKey:)] ? YES : NO;
}
}