I need to cast a boolean as an object, or NSKeyedArchiver throws a memory access error. What's the best way to do this?
R – Objective-C: How to cast a boolean as an object for use with NSKeyedArchiver
castingmemoryobjective cxcode
Related Topic
- Objective-c – How to reverse a NSArray in Objective-C
- C# – Get int value from enum in C#
- Objective-c – In Objective-C, how to test the object type
- Java – Safely casting long to int in Java
- Ios – How to check if a string contains another string in Objective-C
- Objective-c – How to disable ARC for a single file in a project
- Python – Change column type in pandas
- Swift – How to call Objective-C code from Swift
Best Answer
How about encodeBool:forKey: instead?