• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Table data quick key access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table data quick key access


  • Subject: Re: Table data quick key access
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 13 Apr 2006 13:19:04 -0400


I've never tried this, but thought about it. I'd imagine you'd want to subclass the table view and override -keyDown: ... I'd also imagine you'd want to set an "append to search string" timer that starts a new search string if more than a second or two has passed since the last -keyDown:, otherwise the next key is appended to the search string.


I'd guess you'd use the table's current sort key and jump to the first item in the data source whose value matches (starts with) the search string.

Of course the more advanced behavior (such as the user typing "j" but the nearest match starts with a "k") would probably take a bit more thought ... :-)

  Has anyone else done this?

--
I.S.


On Apr 13, 2006, at 12:24 PM, David Rogers wrote:

Hey all,

I've got a tableview in my app and I am wanting to let users to spell out the item they want and then have it selected(like in the Finder, Xcode, most apps). I'm just wondering what I need to do to make this happen. My hunch is that it has something to do with sort descriptors. Am I on the right track?

Thanks,

Dave Rogers _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Table data quick key access (From: David Rogers <email@hidden>)

  • Prev by Date: Re: Strange text system problem, seems like a bug
  • Next by Date: Is this program open?
  • Previous by thread: Table data quick key access
  • Next by thread: Re: Table data quick key access
  • Index(es):
    • Date
    • Thread