【问题标题】:Guides or samples for NSRuleEditor?NSRuleEditor 的指南或示例?
【发布时间】:2012-10-31 18:34:08
【问题描述】:

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

但是除了参考文献之外还有任何类型的文档吗?

某种示例代码或指南会很好,但它看起来不像 ADC 可以提供任何东西。截至目前,NSRuleEditor 似乎是 Cocoa 中记录最少的控件!

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

【问题讨论】:

  • 哇,这么受欢迎,是吗? :-)
  • 我现在不能发布任何有用的东西(我明天会做),但我确实在 MacOSX.com 或 MacRumors.com 论坛上找到了一个示例项目。
  • 非常感谢 - 仍然没有找到示例代码..
  • 咳咳……几个月后,github.com/danieljfarrell/NSRuleEditorTest

标签: objective-c macos cocoa nscontrol


【解决方案1】:

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

Apple 的文档: 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

【讨论】:

猜你喜欢
  • 2011-10-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-25
  • 1970-01-01
  • 2016-12-02
  • 1970-01-01
  • 2016-06-28
相关资源
最近更新 更多