Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 the Mac Application.

Anyone faced this problem ?

like image 824
Lukasz Avatar asked Mar 12 '10 00:03

Lukasz


2 Answers

On Mac OS X, you should probably be taking advantage of the Cocoa controllers. NSArrayController is probably what you want.

like image 121
Barry Wark Avatar answered Nov 16 '22 00:11

Barry Wark


NSFetchedResultsController is now available on Mac OS X, 10.12 and above. https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller

like image 31
Z S Avatar answered Nov 16 '22 00:11

Z S