NSFetchedResultsController Mac OSX Cocoa equivalent
I am porting some Core Data code from iPhone to Mac OS X.
Problem is that the Core Data Framework on Mac OS X does not have NSFetchedResultsController.h
nor NSFetchedResultsControllerDelegate
protocol declared; at least I am not able to force a Cocoa application to see this class even if I drag Core Data Framework from the iPhone project to link with th开发者_如何学运维e Mac Application.
Anyone faced this problem ?
On Mac OS X, you should probably be taking advantage of the Cocoa controllers. NSArrayController is probably what you want.
NSFetchedResultsController
is now available on Mac OS X, 10.12 and above.
https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller
精彩评论