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.
如何在 NSTextField 的左侧添加搜索图标?您可以在许多其他应用程序中看到相同的情况。
我猜是这样的:
text = NSTextField.alloc().initWithFrame_(((0, 0), (30.0, 22.0))) text.setCell_(NSSearchFieldCell.alloc().init())