iphone Programming Glossary: mutablestring
Convert excel document (xls) to a plist http://stackoverflow.com/questions/1546007/convert-excel-document-xls-to-a-plist forKey keyArray objectAtIndex keyNumber keyNumber if i 0 plistOutputArray addObject dictionary i NSMutableString mutableString NSMutableString stringWithString pathAsString mutableString replaceOccurrencesOfString @ .csv withString @ .plist options.. 0 plistOutputArray addObject dictionary i NSMutableString mutableString NSMutableString stringWithString pathAsString mutableString replaceOccurrencesOfString @ .csv withString @ .plist options nil range NSMakeRange mutableString length 4 4 NSURL url NSURL.. pathAsString mutableString replaceOccurrencesOfString @ .csv withString @ .plist options nil range NSMakeRange mutableString length 4 4 NSURL url NSURL fileURLWithPath mutableString plistOutputArray writeToURL url atomically YES share improve..
When to use retain and when to use copy http://stackoverflow.com/questions/4087208/when-to-use-retain-and-when-to-use-copy . Let's say you have this code @property nonatomic retain NSString aString in some other class NSMutableString mutableString NSMutableString alloc initWithString @ test theObject.aString mutableString theObject retains the mutable string mutableString.. in some other class NSMutableString mutableString NSMutableString alloc initWithString @ test theObject.aString mutableString theObject retains the mutable string mutableString setString @ test2 What happens here is that you assign the value test.. NSMutableString alloc initWithString @ test theObject.aString mutableString theObject retains the mutable string mutableString setString @ test2 What happens here is that you assign the value test to aString but then it gets modified externally and..
|