【问题标题】:NSPathControl will not display placeholderString when bound to a valueNSPathControl 绑定到值时不会显示占位符字符串
【发布时间】:2016-12-09 23:13:59
【问题描述】:

主题说明一切。

我在 IB 中创建了一个带有占位符消息的 NSPathControl。 Ran 应用,出现占位符文本。

然后我将控件的值绑定到我的控制器的 NSURL* 属性。现在,占位符文本永远不会出现,即使属性值为 nil。

难倒。

【问题讨论】:

    标签: macos cocoa interface-builder cocoa-bindings nspathcontrol


    【解决方案1】:

    您需要在绑定中的相应字段 No Selection Placeholder 和/或 Null Placeholder 下设置占位符。

    【讨论】:

    • 谢谢!空占位符是拼图中缺失的部分。
    猜你喜欢
    • 2014-12-31
    • 2017-12-12
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多