开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜