Why isn't there NSArrayController for the iPhone? Will there ever be an NSArrayController for the iPhone?
为什么没有适用于iPhone的NSArrayController? iPhone上会有一个NSArrayController吗?
2 个解决方案
#1
31
Why isn't there NSArrayController for the iPhone?
为什么没有适用于iPhone的NSArrayController?
Because it's part of the Application Kit. The iPhone doesn't have Application Kit; it has UIKit instead.
因为它是Application Kit的一部分。 iPhone没有应用套件;它有UIKit。
Also, it exists on the Mac to complement Bindings, which doesn't exist on the iPhone.
此外,它存在于Mac上,以补充iPhone上不存在的Bindings。
Will there ever be an NSArrayController for the iPhone?
iPhone上会有一个NSArrayController吗?
Ask Apple. Better yet, file an enhancement request. File one for Bindings while you're at it, since there's not much point in having NSArrayController without it.
问苹果。更好的是,提交增强请求。当你在它的时候为Bindings提交一个文件,因为没有它的NSArrayController没什么意义。
#2
7
While it is not the same as NSArrayController, NSFetchedResultsController serves many of the same purposes.
虽然它与NSArrayController不同,但NSFetchedResultsController提供了许多相同的用途。
Of course, we're not allowed to talk about NSFetchedResultsController yet, but I wonder what would happen if you searched the Apple docs for it?
当然,我们还不允许谈论NSFetchedResultsController,但我想知道如果你搜索Apple文档会发生什么呢?
Just saw this old answer of mine needed an update: It is allowed to talk about NSFetchedResultsController now.
刚看到我的这个旧答案需要更新:现在可以讨论NSFetchedResultsController。
#1
31
Why isn't there NSArrayController for the iPhone?
为什么没有适用于iPhone的NSArrayController?
Because it's part of the Application Kit. The iPhone doesn't have Application Kit; it has UIKit instead.
因为它是Application Kit的一部分。 iPhone没有应用套件;它有UIKit。
Also, it exists on the Mac to complement Bindings, which doesn't exist on the iPhone.
此外,它存在于Mac上,以补充iPhone上不存在的Bindings。
Will there ever be an NSArrayController for the iPhone?
iPhone上会有一个NSArrayController吗?
Ask Apple. Better yet, file an enhancement request. File one for Bindings while you're at it, since there's not much point in having NSArrayController without it.
问苹果。更好的是,提交增强请求。当你在它的时候为Bindings提交一个文件,因为没有它的NSArrayController没什么意义。
#2
7
While it is not the same as NSArrayController, NSFetchedResultsController serves many of the same purposes.
虽然它与NSArrayController不同,但NSFetchedResultsController提供了许多相同的用途。
Of course, we're not allowed to talk about NSFetchedResultsController yet, but I wonder what would happen if you searched the Apple docs for it?
当然,我们还不允许谈论NSFetchedResultsController,但我想知道如果你搜索Apple文档会发生什么呢?
Just saw this old answer of mine needed an update: It is allowed to talk about NSFetchedResultsController now.
刚看到我的这个旧答案需要更新:现在可以讨论NSFetchedResultsController。