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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to