robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

NSFetchedResultsController #198

Closed sergiosvieira closed 11 years ago

sergiosvieira commented 11 years ago

Hi Robbie,

Do you can provide a working example of NSFetchedResultsController with XMPPFramework which update a TableView's roster list? (add/romove user list)

With Regards, Sérgio Vieira

avaidyam commented 11 years ago

I can do that, will post in a few hours though because I'm at school now.

sergiosvieira commented 11 years ago

thank you very much.

avaidyam commented 11 years ago

Upon closer inspection, it seems Apple has provided samples for use here. I assume you're using Core Data with the Roster, so just get the mainThreadManagedObjectContext of the roster storage.

http://developer.apple.com/library/ios/#documentation/CoreData/Reference/NSFetchedResultsController_Class/Reference/Reference.html

ObjColumnist commented 11 years ago

I've had a few issues with NSFetchResultsController not always updating (unrelated to XMPP), I ended up not using it.