• 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: Newbe Question: Searching Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbe Question: Searching Address Book


  • Subject: Re: Newbe Question: Searching Address Book
  • From: Brad Bumgarner <email@hidden>
  • Date: Wed, 3 May 2006 07:50:16 -0600

Thanks for all the suggestions. Between the this suggestion to use 'componentsSeparatedByString:@" "' and the suggestions I got last night, I KNOW I'll be able to put something together.

The thing about learning a new language, especially when dealing with Obj-C and Cocoa is you REALLY don't know what you don't know. I never would have known about the "componentSeparatedByString" if it wasn't suggested.

Silly question here (or maybe not): do you ever get a feel for everything that is provided you through Obj-C and Cocoa?

Thanks again,
Brad Bumgarner, CTA



On May 3, 2006, at 1:55 AM, b UND d wrote:

Am 03.05.2006 um 05:02 schrieb Brad Bumgarner:

Yup, I know that code. In fact I've been able to create a complex query where I can search for first and/or last name. The problem I run into is when I enter the person's first and a space before entering the last name. Since there are no spaces in the db between the first and last names, no entries are found. For now, I'm just going to have to stick with entering the first name. I need to get this moving forward. Once I've got a better handle on things THEN I'll come back to it.

Hi Brad,

the solution to this could be
- to separate your search string in parts using 'componentsSeparatedByString:@" "' (NSString)
- and build ABSearchElements for all resulting substrings.
- Then you can combine them for your search using 'ABSearchElement searchElementForConjunction:kABSearchOr children:...'


Hope that helps,

Dominik

_______________________________________________ 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
  • Follow-Ups:
    • Re: Newbe Question: Searching Address Book
      • From: "Klaus L. Greulich" <email@hidden>
    • Re: Newbe Question: Searching Address Book
      • From: Horst Hoesel <email@hidden>
References: 
 >Re: Newbe Question: Searching Address Book (From: Brad Bumgarner <email@hidden>)
 >Re: Newbe Question: Searching Address Book (From: Andrew Knott <email@hidden>)
 >Re: Newbe Question: Searching Address Book (From: Brad Bumgarner <email@hidden>)
 >Re: Newbe Question: Searching Address Book (From: Nelson Santos <email@hidden>)
 >Re: Newbe Question: Searching Address Book (From: Brad Bumgarner <email@hidden>)
 >Re: Newbe Question: Searching Address Book (From: b UND d <email@hidden>)

  • Prev by Date: Re: Refactoring tools available for Cocoa / ObjC?
  • Next by Date: Re: Newbe Question: Searching Address Book
  • Previous by thread: Re: Newbe Question: Searching Address Book
  • Next by thread: Re: Newbe Question: Searching Address Book
  • Index(es):
    • Date
    • Thread