objective c - How to work with plist in several threads -
i have simple multithread application 2 tabs. each tab table view number of items, information them saved in plist file structure this: <key>items</key> <array> <dict> <key>name</key> <string>bosch kgn36x45</string> <key>price</key> <string>18890</string> <key>quantity</key> <real>33</real> </dict> i need work file in several threads, example in 1 thread can remove item code: - (void)removeitematrow:(int)row { [items removeobjectatindex:row]; nsmutabledictionary *plistdict = [nsdictionary dictionarywithobject:items forkey:@"items"]; [self saveappfile:plistdict]; } and can open item in other view controller edit: - (void) updateviews { nsdictionary *item = [[[datacontroller sharedinstance] getitems] objectatindex:itemrow]; nslog(@"%@", item); self.namelabel.text = [item obje...