• 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
Autocomplete from an array of dictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autocomplete from an array of dictionaries


  • Subject: Autocomplete from an array of dictionaries
  • From: Jason Wiggins <email@hidden>
  • Date: Thu, 23 Oct 2008 19:06:56 +1100

Hi,

I'm working on an autocompletion system such as with mail To: Cc: fields etc.
I have an array of dictionaries and I want the autocomplete to match to the key "description"
This code below works great for an array of strings:


NSArray *matchingNames = [namesArray filteredArrayUsingPredicate: [NSPredicate predicateWithFormat:@"SELF beginswith[cd] %@", substring]];

But how do I get the above code to match to a specific key from a dictionary?

Regards,
Jason Wiggins
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED] Autocomplete from an array of dictionaries
      • From: Jason Wiggins <email@hidden>
  • Prev by Date: Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
  • Next by Date: Re: Persistent Connection to Web Server in cocoa, emulating AJAX
  • Previous by thread: Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
  • Next by thread: [SOLVED] Autocomplete from an array of dictionaries
  • Index(es):
    • Date
    • Thread