Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
主题说的是全部。
我在 IB 中创建了一个带有占位符消息的 NSPathControl。运行应用程序,出现占位符文本。
然后我将控件的值绑定到我的控制器的 NSURL* 属性。现在,占位符文本永远不会出现,即使属性值为 nil。
难住了。
您需要在绑定中的相应字段 No Selection Placeholder 和/或 Null Placeholder 下设置占位符。