nscoding
Unarchiving iOS4 data on iOS5 doesn't work
I\'ve archived an NSDictionary on iOS 4 using an NSKeyedArchiver, but unarchiving on iOS 5 using [NSKeyedUnarchiver unarchiveObjectWithData: data][详细]
2023-04-13 03:41 分类:问答How do NSCoder and/or NSKeyedUnarchiver handle multiple decodings of the same object?
I was wondering how NSCoder would handle an object that was shared and encoded by multiple objects the next time it was decoded. Will it make two copies of the object, or will one object be decoded an[详细]
2023-04-08 09:18 分类:问答When decoding an object from NSCoder, what's the best way to abort?
I\'m decoding a custom object from a cached serialization.I\'ve versioned++ the object since it was encoded, and if the serialized version is an old version I want to just throw it away.I was under th[详细]
2023-03-18 21:15 分类:问答How to encode NSNetService?
I have a class that has these 开发者_开发技巧two ivars: @interface UserData : NSObject <NSCoding> {[详细]
2023-03-16 15:59 分类:问答Cannot figure out why my app crashes when I use NSKeyedArchivers / NSKeyedUnarchivers
I am developing my first iphone \'Diary\' app, which uses custom \'Entry\' objects that hold an NSString title, NSString text and NSDate creationDate. When I try to archive an NSMutableArray of Entry[详细]
2023-03-04 18:15 分类:问答How to encode and decode a custom class with NSKeyedArchiver
I have a custom class that I wish to save and load. The class contains an NSDate, an NSString, and an NSNumber. I have implemented the NSCoding protocol in the .h file. Here is the code I have so far.[详细]
2023-02-28 14:18 分类:问答Saving localNotifications with UILocalNotifications and NSUserDefaults
I want to save all my scheduled localNotifications before app goes to background. I get all the localNotification from UIApplication, and I try to save like:[详细]
2023-02-19 12:29 分类:问答Serializing/Storing a UIView and its subviews
I\'m a relatively new iOS developer, with most of my previous experience coming from .NET. My application is a canvas lik开发者_开发技巧e system in that there is a parent UIView that contains all the[详细]
2023-02-19 04:34 分类:问答USe NSCoding To Create User Editable Plist
I开发者_如何学编程\'m trying to create a user editable plist where the user can store a custom created workout routine including strings referenced from another data.plist in the app bundle.[详细]
2023-02-18 22:03 分类:问答objects conforming to nscoding will not writetofile
I want to write an array of Question objects to file, but somehow writeToFile isn\'t doing anything. A Question has an Owner and and an array of Answer objects. An Answer has an Owner as well. All thr[详细]
2023-02-17 11:48 分类:问答