• 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 NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case-insensitive NSDictionary


  • Subject: Re: case-insensitive NSDictionary
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 16 Mar 2009 09:07:55 -0600

As a followup, I tried doing this just now, and then realized that I'd forgotten that NSDictionary is a class cluster, and so it would probably take a lot of gentle massaging to get this method to work correctly.

Using the callback would probably be easier.  =)

Dave

On Mar 16, 2009, at 8:05 AM, Dave DeLong wrote:

You could swizzle the objectForKey: and setObject:forKey: methods with your own that just lowercase the passed in string and then call the actual methods with the new key.

Dave

Sent from my iPod
_______________________________________________

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:
    • Re: case-insensitive NSDictionary
      • From: Michael Ash <email@hidden>
References: 
 >case-insensitive NSDictionary (From: Roland King <email@hidden>)
 >Re: case-insensitive NSDictionary (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: case-insensitive NSDictionary
  • Next by Date: Do hard links have creation dates?
  • Previous by thread: Re: case-insensitive NSDictionary
  • Next by thread: Re: case-insensitive NSDictionary
  • Index(es):
    • Date
    • Thread