• 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: NSMutableDictionary drives me mad.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary drives me mad.


  • Subject: Re: NSMutableDictionary drives me mad.
  • From: Clark Cox <email@hidden>
  • Date: Tue, 10 Mar 2009 11:52:52 -0700

On Tue, Mar 10, 2009 at 11:33 AM, Тимофей Даньшин <email@hidden> wrote:
> Hello.
> I am writing a method for searching for the longest common substring. The
> idea is to store the pieces of that LCS in an NSMutableDictionary with
> TMIntWrappers as keys and NSMutableStrings as values.
> Now, TMIntWrapper is the class i created for wrapping ints into objects. It
> stores an int, gives access to it via the .value property, adopts the
> NSCopying protocol and implements the -(BOOL) isEqual: (id) object method.

(Assuming that you can't use NSNumber for some reason) Have you
implemented -hash? That's an important one.

--
Clark S. Cox III
email@hidden
_______________________________________________

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

References: 
 >NSMutableDictionary drives me mad. (From: Тимофей Даньшин <email@hidden>)

  • Prev by Date: Re: Garbage collected and non-garbage collected
  • Next by Date: Re: NSMutableDictionary drives me mad.
  • Previous by thread: Re: NSMutableDictionary drives me mad.
  • Next by thread: Re: NSMutableDictionary drives me mad.
  • Index(es):
    • Date
    • Thread