Questions tagged [nssearchfield]

An NSSearchField object implements a text field control that is optimized for performing text-based searches. The control provides a customized text field for entering search data, a search button, a cancel button, and a pop-up icon menu for listing recent search strings and custom search categories. An NSSearchField object wraps an NSSearchFieldCell object.

115 questions
1
vote
2 answers

How to check if search buttonl of NSSearchField has been pressed

How do I check if I have pressed on an NSSearchField search button? search button of NSSearchField @IBAction func searchTextField(_ sender: NSSearchField) { if `searchButtonIsClicked` { //Code if searchButtonIsClicked …
1
vote
3 answers

How to not get NSSearchField freezing?

I've got a NSSearchField, whose action method does all the searching stuff, by analyzing the sender argument (string). Now the searching stuff (feeding a large array) is kind of CPU intensive, which lets my search field freeze for some seconds. In…
bijan
  • 1,675
  • 18
  • 30
1
vote
0 answers

Can I search for whole strings in an NSSearchField/NSTextField (instead of only words)?

Users must be able to search for whole strings, by typing only part of a string. Example: "this is" should match to "Could you tell me where this is?" The matching strings should be available in the dropdown, and the text field should show the…
robject
  • 808
  • 1
  • 6
  • 12
1
vote
1 answer

Style placeholder text NSSearchField and NSTextField?

I've been creating a MacOS app and am having trouble styling the font of an NSSearchField (named searchField). My code so far is as follows: Declared at top of single main viewController class: let normalTextStyle = NSFont(name: "PT Mono", size:…
Brickers
  • 182
  • 1
  • 12
1
vote
1 answer

In Angular: on selecting option from dropdown I want to search in search field with that value

I am new to angular and I am stuck... I want to create a dropdown as shown in this image where the placeholder in the textbox depends on the selected option from the dropdown. My html is