• 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: Dictionary keyed by a few sparse integers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Dictionary keyed by a few sparse integers? (From: Graham Cox <email@hidden>)
 >Re: Dictionary keyed by a few sparse integers? (From: Roland King <email@hidden>)
 >Re: Dictionary keyed by a few sparse integers? (From: Graham Cox <email@hidden>)
 >Re: Dictionary keyed by a few sparse integers? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Dictionary keyed by a few sparse integers?
  • Next by Date: Re: Localizing standard alternate menu items in unsupported languages
  • Previous by thread: Re: Dictionary keyed by a few sparse integers?
  • Next by thread: Re: Dictionary keyed by a few sparse integers?
  • Index(es):
    • Date
    • Thread