Re: case-insensitive strings
Re: case-insensitive strings
- Subject: Re: case-insensitive strings
- From: Marcel Weiher <email@hidden>
- Date: Fri, 11 Oct 2002 09:06:26 +0200
On Friday, October 11, 2002, at 12:53 Uhr, matt neuburg wrote:
Unfortunately, neither NSMapTable or CFDictionary provide the one
method you used as an example: allKeysForObject:. If you really want
to use an NSDictionary, then doing a custom subclass of NSObject which
holds an NSString is probably the best option. All you need is to
implement isEqual: and hash. Downside is having to create these
"wrapper" instances for insertion and probing.
Thanks, Ali, that's extremely helpful and valuable (though ultimately
disheartening, since it seems a wrapper would be a lot of work for
such a small thing...!) m.
MPWFoundation includes a case-insensitive (unique) string class.
It might be helpful.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.