• 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: Dictionary Enumerator - partial/wildcard seaches?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dictionary Enumerator - partial/wildcard seaches?


  • Subject: Re: Dictionary Enumerator - partial/wildcard seaches?
  • From: Steve Woodward <email@hidden>
  • Date: Thu, 01 May 2003 12:34:08 -0700

I think I found my answer...NSString's hasPrefix method. I only need to search with a trailing wildcard, so this should work fine.

Steve W

>Hi all. I have an array of dictionaries that I would like to be able to do a partial or wildcard >search on. I only want to search one of the keys in the dictionary, namely "name". I have a >decent understanding of enumerating through arrays and dictionaries but am not sure about partial >matches. I thought about doing it in regular old C but then I'd have to go back and forth between >chars and NSStrings...Any thoughts/advice would be greatly appreciated, thanks in advance.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: RE: count only defined for abstract class error
  • Next by Date: FairPlay framework
  • Previous by thread: Dictionary Enumerator - partial/wildcard seaches?
  • Next by thread: Re: Toolbar and custom views
  • Index(es):
    • Date
    • Thread