【发布时间】:2013-01-22 21:56:05
【问题描述】:
我正在构建一个类似笔记的应用程序。它有一个 NStableview 显示所有笔记的标题,以及一个 NStextview 显示所选笔记的纯文本。我正在使用绑定和核心数据。我想要一个搜索功能:
1. the tableview only shows the notes that contains the text you query
2. the textview displays the first note, and highlight the text you queried
我刚开始做 Cocoa 开发,不知道如何实现,以及我应该使用哪些类和方法。我用谷歌搜索了一下,没有找到好的答案。
谁能给我一些想法和资源来看看?谢谢。
【问题讨论】:
标签: search core-data full-text-search cocoa-bindings nsmanagedobjectcontext