Uli's Web Site
[ Zathras.de - Uli's Web Site ]
Other Sites: Stories
Pix
Abi 2000
Stargate: Resurgence
Lost? Site Map!
 
 
     home | blog | moose | programming | articles >> blog

 Blog Topics
 
 Archive
 

15 Most Recent [RSS]

 Less work through Xcode and shell scripts
2011-12-16 @600
 
 iTunesCantComplain released
2011-10-28 @954
 
 Dennis Ritchie deceased
2011-10-13 @359
 
 Thank you, Steve.
2011-10-06 @374
 
 Cocoa Text System everywhere...
2011-03-27 @788
 
 Blog migration
2011-01-29 @520
 
 All you need to know about the Mac keyboard
2010-08-09 @488
 
 Review: Sherlock
2010-07-31 @978
 
 Playing with Objective C on Debian
2010-05-08 @456
 
 Fruit vs. Obst
2010-05-08 @439
 
 Mixed-language ambiguity
2010-04-15 @994
 
 Uli's 12:07 AM Law
2010-04-12 @881
 
 Uli's 1:24 AM Law
2010-04-12 @874
 
 Uli's 6:28 AM Law
2010-04-12 @869
 
 Uli's 3:57 PM Law
2010-04-12 @867
 

More...

Search Field Usability

A while ago, the developer of a Java-based application asked me to help make their user interface more Mac-like. They had spent a lot of effort on their UI, that much was obvious, so interestingly a lot of the issue were just small things:

Turn a combo box into a regular popup menu, turn an oval Aqua pushbutton into one of the rectangular bevel button styles, turn animated cursors into progress spinner controls in the window, that sort of thing. One part that surprised me, was the search field.

You see, they have a big file list, so they were helpful and added a search field. The search field generally matches against the start of a file's name, but you can add an asterisk at the start to indicate you want to match the middle.

That's all very standard stuff, but interestingly, it's not how it's usually done on the Mac. A Mac search field usually just matches anywhere in the filename. There's usually no way to tell it to match at the start. Is that a deficiency? One of those cases where the Mac supposedly drops functionality to make it easier to understand?

Not quite. You see, the functionality to match against the start of a list item has been available for ages, even before the rounded search field appearance was introduced: As Type-Ahead-selection. It's not quite an obvious feature, but its available pretty much in every application:

Whenever you have keyboard focus on a list on the Mac, type the start of a list item's name, and it will select that list item, or the closest match it came up with if there's no list item with that exact name. So, you don't even need to use the search field to quickly get to the section of files where each one starts with a particular string, you just type, and the first one gets selected. And if you sort by name, the next few are the rest of the results.

It's a flexible, clever design. Does it have less features than a full regexp-enabled search field? Yes, but have you ever noticed how much time it takes to compose a working regexp that does what you want? Generally, I never bother, unless it is for text search-and-replace. But the above? It's great for navigating a large list. Filter, drill down, reduce the amount of choices until you can spot the right item yourself with your eyes. More is often not needed.

Reader Comments: (RSS Feed)
harvey writes:
Yeah, Finder has done that forever. For Leopard NSTableView made this much easier.
Or E-Mail Uli privately.

 
Created: 2008-08-17 @975 Last change: 2024-12-26 @231 | Home | Admin | Edit
© Copyright 2003-2024 by M. Uli Kusterer, all rights reserved.