문제

How can I add a search icon on the left in a NSTextField? You can see the same in many other applications.

도움이 되었습니까?

해결책

I guess it is this:

text = NSTextField.alloc().initWithFrame_(((0, 0), (30.0, 22.0)))
text.setCell_(NSSearchFieldCell.alloc().init())
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top