Re: case-insensitive NSDictionary
Re: case-insensitive NSDictionary
- Subject: Re: case-insensitive NSDictionary
- From: Roland King <email@hidden>
- Date: Mon, 16 Mar 2009 22:32:36 +0800
thank you - I really must think about searching the CF-equivalent to
the NS classes, there is a lot of extra stuff I have no idea at all
exists. This is exactly what I need.
On Mar 16, 2009, at 10:26 PM, Adam R. Maxwell wrote:
On Mar 16, 2009, at 7:02 AM, Roland King wrote:
Any good ideas for doing a key-case-insensitive NSDictionary of
NSString to NSString? I have some HTTP headers I want to stick in a
dictionary and look up later. HTTP headers have case-insensitive
keys.
Use a CFDictionary with custom key callbacks that have a case-
insensitive hash and equality function. You can then cast it to an
NSDictionary for easier access.
--
Adam
_______________________________________________
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