Questions tagged [nssecurecoding]

Conforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.

Conforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.

Click Here for class reference.

48 questions
0
votes
1 answer

Is it possible to decode a NSKeyedArchived collection containing unknown objects

I have a collection of objects with different classes A, B, and C (all share a common superclass): // Encoded collection @[A, B, C] This collection gets archived and unarchived via NSCoding. Is there a way to partially unarchive this collection if…
Warpling
  • 2,024
  • 2
  • 22
  • 38
0
votes
1 answer

NSSecureCoding in Swift (Facebook SDK)

I am trying to translate a Objective-C piece of code into Swift code. Objective-C: #import "SUCacheItem.h" #define SUCACHEITEM_TOKEN_KEY @"token" #define SUCACHEITEM_PROFILE_KEY @"profile" @implementation SUCacheItem +…
Niels
  • 115
  • 11
0
votes
1 answer

Adopting NSSecureCoding with opaque types

I have an Objective-C class that needs to adopt NSSecureCoding for transport across an XPC connection. The class has a couple properties that are opaque types (dispatch_queue_t and dispatch_group_t). How would I go about implementing -initWithCoder:…
Andrew
  • 7,630
  • 3
  • 42
  • 51
1 2 3
4