On Tue, Mar 10, 2009 at 11:33 AM, Тимофей Даньшин <ok5.ad...@gmail.com> 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
clarkc...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to