Re: NSMutableDictionary drives me mad.

2009-03-10 Thread Andy Lee
On Mar 10, 2009, at 2:33 PM, Тимофей Даньшин wrote: 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

Re: NSMutableDictionary drives me mad.

2009-03-10 Thread Clark Cox
On Tue, Mar 10, 2009 at 11:33 AM, Тимофей Даньшин 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

Re: NSMutableDictionary drives me mad.

2009-03-10 Thread Eric Gorr
I'm not sure what your problem is, but I wanted to point out that it appears you could use NSNumber instead of TMIntWrappers to wrap an int value inside of an NSObject which can be used as a key. Perhaps there is a bug in TMIntWrappers that is preventing it from being used as a key... Is

Re: NSMutableDictionary drives me mad.

2009-03-10 Thread Alexander Heinz
Have you tried using NSNumber instead of your custom integer wrapper? I doubt this is the problem, but see what happens if you do. HTH, Alex On Mar 10, 2009, at 2:33 PM, Тимофей Даньшин wrote: Hello. I am writing a method for searching for the longest common substring. The idea is to store

NSMutableDictionary drives me mad.

2009-03-10 Thread Тимофей Даньшин
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