Re: Case *insensitive*
Re: Case *insensitive*
- Subject: Re: Case *insensitive*
- From: "Thomas C. Woodley" <email@hidden>
- Date: Fri, 12 Jul 2002 14:41:01 -0700
The usual technique is to ensure that all of your keys (in
myMutableDictionary) are all CAPS or lowercase, then use one of
NSString's handy methods:
- (NSString *)uppercaseString;
- (NSString *)lowercaseString;
- (NSString *)capitalizedString;
[myMutableDictionary objectForKey:[someKey uppercaseString]]
--
On Friday, July 12, 2002, at 02:18 PM, Nico wrote:
Hi :)
I'd like to call the -objectForKey: method for my NSMutableDictionary
this way:
[myMutableDictionary objectForKey:someKey]
But I need to ignore the capitalization of someKey...
Any ideas ?
Thanks in advance.
Nico.
_______________________________________________
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.
_______________________________________________
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.