nskeyedarchiver
NSKeyedUnarchiver - how to prevent a crash
I guess this is very obvious, but I have a question about loading data. If have a file called library.dat which stores all kind of information about objects in the app. It\'s set up all nicely (in ter[详细]
2023-04-07 23:18 分类:问答Saving [UIColor colorWithPatternImage:image] UIColor to Core Data using NSKeyedArchiver
I\'m unable to create an NSData object from a UIColor (with a pattern) created with the factory method[详细]
2023-04-05 08:41 分类:问答NSKeyedArchiver and description method : app crashes
i tried to test NSKeyedArchiver, but my code seems to be wrong. I then tried only with a NSLog, but the NSLog returns (null) if i alloc-init my var \"model\" in the init method (in the controller), an[详细]
2023-04-03 10:48 分类:问答streaming images over bonjour between two iOS device
My goal is to stream images captured by AVCpatureInput from one iOS device to another via bonjour. Here is my current method:[详细]
2023-04-02 11:26 分类:问答Object order for NSKeyedArchiver
As per my understanding full object graph is stored using: NSKeyedArchiver archiveRootObject and it gets retrieved in the same开发者_Python百科 order it was saved, is this correct?[详细]
2023-03-27 21:55 分类:问答How to parse the contents of a foreign file created with NSKeyedArchiver
I need to be able to compare two versions of a plist file created with NSKeyedArchiver. In particular, it\'s the \"elements\" file created in Xcode for a .xcdatamodeld file.[详细]
2023-03-27 11:10 分类:问答How do I archive two objects using NSKeyedArchiever?
Previously, I have an array in which I use NSKeyedArchiver to archieve. [NSKeyedArchiver archiveRootObject:array toFile:docPath];[详细]
2023-03-16 06:00 分类:问答Limitations of NSMutableData for NSKeyedUnarchiver
I have read on another post (Archiving / Unarchiving results in initForReadingWithData incomprehensible archive) that you can\'t store more than 250kBytes on a NSMutableArray. Unfortunately, in order[详细]
2023-03-16 02:49 分类:问答iOS: Appending to an archive
Can anyone recommend a memory-efficient way to append data to an archive using NSKeyArchiver? I have an array which collects objects and makes them available to the app as an in-memory cache. In ord[详细]
2023-03-15 14:38 分类:问答NSMutableArray disappears after app kill or restart using NSKeyedArchiver
I have an app that is storing Task objects (custom class) inside of a NSMutableArray. The Task class conforms to the NSCoding and NSCopying protocols, and I have also implemented the encodeWithCoder a[详细]
2023-03-12 10:19 分类:问答