问题描述
我正在将一些Core Data代码从iPhone移植到Mac OS X.
问题是,Mac OS X上的Core Data Framework没有 NSFetchedResultsController.h
或 NSFetchedResultsControllerDelegate
协议声明;至少我不能强迫Cocoa应用程序看到这个类,即使我从iPhone项目中拖动Core Data Framework与Mac应用程序链接。
任何人面对这个问题?
在Mac OS X上,你应该可以利用Cocoa控制器。 可能是您想要的。 / p>
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 ?
On Mac OS X, you should probably be taking advantage of the Cocoa controllers. NSArrayController is probably what you want.
这篇关于NSFetchedResultsController Mac OSX Cocoa等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!