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

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.

  • Prev by Date: Re: is protected broken, or am I?
  • Next by Date: Re: Carbon vs Cocoa arguments
  • Previous by thread: Re: case-insensitive strings
  • Next by thread: How do i Distribute Objects to Two Cocoa Applications
  • Index(es):
    • Date
    • Thread