|
From: | Ivan Vučica |
Subject: | Re: NSMutableString -initWithFormat appends to existing text |
Date: | Wed, 18 Apr 2018 09:29:40 +0000 |
It may, but invoking init multiple times is still a bad idea.
If you don’t need anything more, NSString includes writeToFile:. What does a ‘text oriented file’ mean? You still have a format, whether that’s Windows-style INI, or JSON, or the ASCII and XML property list formats that are first-class citizens under GNUstep and similar systems? For portability of data to other languages, I’d say writing JSON is simplest. NSJSONSerialization is what you want. Here’s some Apple documentation on how to do property lists under Cocoa: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/PropertyLists/ReadWritePlistData/ReadWritePlistData.html |
signature.asc
Description: Message signed with OpenPGP
[Prev in Thread] | Current Thread | [Next in Thread] |