• 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: TableSearchServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableSearchServices


  • Subject: Re: TableSearchServices
  • From: Victor Yee <email@hidden>
  • Date: Tue, 17 Jul 2001 16:16:40 -0400

On Tue, 17 Jul 2001 10:49:26 -0400, Arthur J Knapp wrote,

> > tell TableSearchServices
> >
> > _startSearch(addressbookFields, addressbookEntries)
> >
> > _findEntriesWhose("lastName", "contains", "smith")
> >
> > _andWhose("firstName", "=", "john")
> >
> > set x to the contents of _searchResults()
> >
> > _endSearch()
>
>
> It's so darn AppleScript-like. :)

:) I defined the interface first and then worked out the routines to implement it.

I'm discovering that finding good handler names eases the grunt work of coding, but that in itself is a difficult task. Trying to find a decent balance between meaning and character length has me constantly reaching for a dictionary or thesauraus. I should've paid more attention in my high school English classes (ahh... aren't regrets the first signs of aging? ;)

> When I have some chunk of clear time available, I would like
> to try and work with this project, to test and extend it. I
> can't wait. :)

[!!!]

tell TableSearchServices

_findSaladsWhose("dressing", "contains", "towels")

_searchResults()

--> {"Saturn"}

;)

Victor

p.s. Arghh! Just noticed that some of the documentation has to be fixed...


  • Prev by Date: Re: View every folder of a folder by name
  • Next by Date: Re: Saving an attachment in Outlook Express
  • Previous by thread: Re: TableSearchServices
  • Next by thread: Re: TableSearchServices
  • Index(es):
    • Date
    • Thread