Re: Dictionary keyed by a few sparse integers?
Re: Dictionary keyed by a few sparse integers?
- Subject: Re: Dictionary keyed by a few sparse integers?
- From: Graham Cox <email@hidden>
- Date: Fri, 29 Oct 2010 23:20:11 +1100
On 29/10/2010, at 11:12 PM, Andy Lee wrote:
>> Having put it back to not using the static array, it's now working fine! Gremlins....
>
> Happens all the time. Someone should really do a study on why putting code back the way it was fixes bugs, especially after one has posted to cocoa-dev. :)
>
> --Andy
OK, found the problem - silly mistake. When testing I used alloc + init on the object that implements this, which is not its designated initialiser, so the look-up dictionary wasn't being initialised. D'oh!! (I've also corrected this so that -init does now call the designated initialiser as it should).
Thanks anyway!
--Graham_______________________________________________
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