nscoding
NSCoding to java
Hee, I currently am using NSCoding to write my objects to data and save them to an file in ob开发者_开发技巧jective-c.[详细]
2023-02-14 20:49 分类:问答Cocoa Interface Builder object initialization
Base on the documentation and sample code that I开发者_JAVA技巧 have gone through, I got an impression that when a class defined in xcode is read into and configured in Interface Builder, an object ba[详细]
2023-02-04 03:26 分类:问答Why is only one attribute of my <NSCoding> object being properly written to a file?
So I\'m trying to write a NSMutableArray of custom objects (a \"Course\" representing a college course for a Course Planner app) to a file when my application terminates and then read that array from[详细]
2023-01-29 04:45 分类:问答NSCoding of NSMutableDictionaries containing custom objects
I was trying to serialize a SearchEntity object(custom object) containing an NSMutableDictionary containing a set of type CategoryEntity(custom object).[详细]
2023-01-28 12:27 分类:问答NSCoding leak problem with initWithCoder
I have a leak in the following code: -(id)initWithCoder:(NSCoder *)aDecoder { if (self = [super init]) {[详细]
2023-01-26 06:00 分类:问答Save NSMutableArray to load when reopenning iphone app
I have a NSMutableArray, each item in this array is different class. In each class has many field such as CPPlot, identifier,... (I am using CorePlot to develop a stock application). Now I would like[详细]
2023-01-23 05:19 分类:问答exc_bad_access from object returned from NSKeyedUnarchiver
I am having trouble loading from saved data an instance of a custom class that conforms to the NSCoding protocol. My class has a UIImage property and when I assign a new UIImage to it the program cras[详细]
2023-01-22 03:24 分类:问答How to save an NSMutableArray containing NSMutableArrays of custom objects in NSUserDefaults
I was able to save an NSMutableArray of custom objects to NSUserDefaults by implementing NSCoding in the custom class. However, now I want to save an NSMutableArra开发者_StackOverflow中文版y of these[详细]
2023-01-20 11:42 分类:问答NSCoding protocol question
I want to add the archiving (NSCoding) protocol to my model class, and then i implement 开发者_高级运维both methods encodeWithCoder:(NSCoder*)coder and initWithCoder:(NSCoder*)coder. MyModelClass has[详细]
2023-01-19 19:04 分类:问答NSCoding doesn't seem to store the frame of my UIImageView
I can\'t seem to get NSCoding to store the \'frame\' or \'center\' properties of my UIImageView subclassed object.It seems to store everything else, both custom properties and standard class propertie[详细]
2023-01-18 16:55 分类:问答