Post #1735073
2026-04-13 05:51 UTC
Came across a really neat #AppKit API today for NSSearchField. In macOS 26, you can give it an array of example-searches that it will animate through when
- the field is the first responder/in focus
- the field is still empty
This is great for things like a maps/location search to show how specific or generic search terms can be.
The property to set is `placeholderStrings` (plural)
Check it out:
Replies (3)
-
@sgamel@mastodon.top 2026-04-13 06:11
@marioguzman@mastodon.social pretty nice. Any idea on how this renders in VoiceOver?
-
@chenhongzhi@mastodon.social 2026-04-13 06:58
@marioguzman@mastodon.social Thanks for the tip. It’s working really well. 😜
-
@mjtsai@mastodon.social 2026-04-13 17:48
@marioguzman@mastodon.social Cool, looks like this actually works with any NSTextField.