Thinking…

As soon as I posted the Search-As-You-Type code, I started thinking of ways to improve it - I know it’s not much use to anyone if it just lets you put strings in and find them later.

So I started writing down some thoughts for a more general implementation that lets you insert any kind of object, and then find those objects. So, my question is this: Is anyone out there interested in using functionality like this?

The design would basically allow you to create a BSMatchTree object, dump anything you want into it, and then find any of those objects later by asking for matches to a given string. I would likely provide outlets to an NSTextField or NSSearchField so it would provide auto-completion. Is this something that *anyone* is interested in seeing?

I might do it anyway, just for fun. In Mugshot, I do most of my searching using predicates, so this code may not help much - but in certain situations, it could be a quick and easy way to implement search-as-you-type searching. So if it’s useful to anyone, then extra bonus :) Leave a comment if it sounds like something you’d check out.

1 Response to “Thinking…”


  1. 1 Tobias Mar 4th, 2006 at 3:54 am

    Your BSMatchTree is a nice and pretty fast filter for log entries. It seems as efficient as the one in OSX’s console utility.

    Cheers,
    Tobias

Leave a Reply