NSFetchedResultsController Mac OSX Cocoa equivalent

前端 未结 2 1041
迷失自我
迷失自我 2021-01-07 20:30

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

相关标签:
2条回答
  • 2021-01-07 21:07

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

    0 讨论(0)
  • 2021-01-07 21:30

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

    0 讨论(0)
提交回复
热议问题