Re: NSMutableDictionary drives me mad.
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