开发者

NSFetchedResultsController Mac OSX Cocoa equivalent

开发者 https://www.devze.com 2022-12-22 13:02 出处:网络
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 protoco

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

精彩评论

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