nssecurecoding Questions

3

I am having trouble with adopting NSSecureCoding. I encode an array containing objects of my custom class, which adopts NSSecureCoding properly. When I decode it, passing the class NSArray (which i...
Plebeian asked 24/6, 2014 at 0:49

4

Solved

i spent all afternoon banging my head against the wall trying to figure out why decoding of this class was failing. the class has a property that is an NSArray of Foo objects. Foo conforms to NSSec...
Typewritten asked 25/10, 2013 at 0:32

2

Solved

In iOS 12 Apple introduced NSSecureUnarchiveFromDataTransformerName for use on CoreData model entities' Transformable properties. I used to keep the Transformer Name field empty, which implicitly u...
Appoint asked 1/8, 2019 at 8:34

1

Solved

I have an Objective-C protocol that requires conformance to NSSecureCoding: @protocol MyProtocol <NSObject, NSSecureCoding> … @end I have a parent object that stores a reference to an obje...
Julianajuliane asked 7/6, 2018 at 21:52

1

I want to use a cutom object in userinfo of a UNMutableNotificationContent but it doesn’t work. When I put a custom object in userinfo, notification is not fired. With this code, a notification is...
Fetial asked 28/12, 2016 at 10:55

1

Solved

I am currently trying the iOS 10 Beta and decided to convert my Swift code to Swift 3. Until now, I was able to securely decode a String using coder.decodeObjectOfClass(NSString.self, forKey: Code...
Keister asked 3/8, 2016 at 10:16

1

Solved

I'm creating a linked list and using containers to group the object, next, and previous properties. Like Foundation collections, I'd like it to implement NSSecureCoding. Here's the declaration: @i...
Oppressive asked 9/7, 2015 at 2:56

1

Solved

I decided to use NSSecureCoding over NSCoding, but I'm having trouble getting it to work. I would expect the following code to fail, since I'm encoding an NSString but attempting to decode an NSNu...
Acyclic asked 24/3, 2015 at 21:9

3

Solved

I'm learning about the NSSecureCoding protocol introduced by Apple in iOS 6. From my understanding so far, it should be used whenever a class encodes/decodes instances of itself, in order to preven...
Emirate asked 25/6, 2013 at 15:45
1

© 2022 - 2024 — McMap. All rights reserved.