Re: Dictionary Enumerator - partial/wildcard seaches?
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.