NSRuleEditor的指南或样本?

Jay*_*Jay 11 macos cocoa objective-c nscontrol

NSRuleEditor看起来像一个非常强大的类,它看起来像iTunes智能播放列表或Finder智能文件夹正在使用它.
(我估计它应该被称为NSSmartRuleEditor ...)

但除了参考文献之外还有哪种文件?

某种示例代码或指南会很好但是它看起来并不像ADC有什么可提供的......现在NSRuleEditor似乎是Cocoa中记录最少的控件!

任何人都知道使用控件,博客文章等的任何开源项目?

Car*_*ter 1

我认为您可能应该寻找 NSPredicateEditor 而不是 NSRuleEditor。NSPredicateEditor 是 NSRuleEditor 的子类,用于编辑“智能”播放列表等。

苹果的文档: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSPredicateEditor_class/Reference/NSPredicateEditor.html

示例应用程序: https://developer.apple.com/library/mac/#samplecode/PhotoSearch/Introduction/Intro.html