سؤال

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