• 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: matt neuburg <email@hidden>
  • Date: Thu, 10 Oct 2002 15:53:29 -0700

> 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.

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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: 
 >Re: case-insensitive strings (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: is protected broken, or am I?
  • Next by Date: Re: NSTextView, NSTextStorage, NSParagraph and lineHeight
  • Previous by thread: Re: case-insensitive strings
  • Next by thread: Re: case-insensitive strings
  • Index(es):
    • Date
    • Thread