Questions tagged [nsarchiving]
36 questions
0
votes
1 answer
Archiving objects within objects in objective-c
Thankyou for reading,
PS: I am a beginner so I am not too good at this unfortunetaly, but any help would be very appreciated
So basically I want to archive a big array which contains Account objects, which they themselves contain:
1.a username in…

jundl77
- 476
- 2
- 15
0
votes
1 answer
Saving data for use at runtime
I've got an iOS app I am trying to build that presents the user data from a .xlsx (MS Excel file) I have. The file has nearly 11,000 rows, with 20 columns per row. I have built a parser to transform each row into an subclass of NSObject, with each…

Joe Million
- 147
- 9
0
votes
1 answer
After unarchiving my array, it suddenly contains NSRects instead of NSValues. How to retrieve the,
I wrapped NSRects in NSValues to get them into an NSMutableArray. I now want to add saving/loading capabilities to my app, so I thought I'd use NSKeyedArchiver and NSKeyedUnarchiver. Wrong! NSKeyedArchiver cannot archive structs. After a bit of…

11684
- 7,356
- 12
- 48
- 71
0
votes
1 answer
Comparing objects after archiving
I have an NSMutableArray of custom objects which are archived via NSArchiver. I need to be able to retrieve the archive as a backup and merge it with the existing NSMutableArray in app. I need to remove duplicates between the in-app NSMutableArray…

Rob DuToit
- 31
- 5
0
votes
2 answers
How to get file path? Loading documents in Document based app
I want to be able to save and load documents, so I'm trying to use these methods:
[NSKeyedArchiver archiveRootObject: rootObject toFile: @"myMap.map"];
rootObject = [NSKeyedUnarchiver unarchiveObjectWithFile:@"myMap.map"];
What am I meant to put…

Mirror318
- 11,875
- 14
- 64
- 106
0
votes
1 answer
Building a custom NSArchiver serialize to string
How does NSArchiver serialize to file? I assume it's serialized in binary format, is that correct? What if I want to store it in string so I can store into SQLite database? Do I need to write my own custom NSArchiver? If so, how do I go about doing…

huggie
- 17,587
- 27
- 82
- 139