It looks like you're new here. If you want to get involved, click one of these buttons!
{
9 = {
9x0 = {
UserID = 123;
formattedMessage = \"Hi... How are you ?{\n CTForegroundColor = \\"<CGColor 0x601e460> [<CGColorSpace 0x6010020> (kCGColorSpaceDeviceGray)] ( 0 1 )\\";\n NSFont = \\"CTFont <name: Cochin-BoldItalic, size: 17.000000, matrix: 0x0>\\nCTFontDescriptor <attributes: <CFBasicHash 0x6070640 [0x11f8400]>{type = mutable dict, count = 1,\\nentries =>\\n\\t1 : <CFString 0xf4d5c4 [0x11f8400]>{contents = \\\\"NSFontNameAttribute\\\\"} = <CFString 0x60707f0 [0x11f8400]>{contents = \\\\"Cochin-BoldItalic\\\\"}\\n}\\n>\\";\n}\";
isDeleted = 0;
isEdited = 0;
lastModifiedDate = \"2011-10-19 17:27:38 +0000\";
message = \"Hi... How are you ?\";
};
};
}
NSString *aDocumentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
NSString *aFilePath = [NSString stringWithFormat:@\"%@/ChatHistory.plist\",aDocumentsDirectory];
BOOL aStatus = [aDictionary writeToFile:aFilePath atomically:YES];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:aDictionary forKey:@\"ChatHistory\"];
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeReally new to archiving.
Tried :
app crashed with : Can you please help me out with this ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeGuess this is a solution :
https://devforums.apple.com/message/340283#340283
will explore this now..
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome