• 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: Case *insensitive*
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Case *insensitive* (From: Nico <email@hidden>)

  • Prev by Date: Case *insensitive*
  • Next by Date: Basic DO Questions
  • Previous by thread: Case *insensitive*
  • Next by thread: Re: Case *insensitive*
  • Index(es):
    • Date
    • Thread