• 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: Severe ASOC runtime bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Severe ASOC runtime bug


  • Subject: Re: Severe ASOC runtime bug
  • From: Dave <email@hidden>
  • Date: Thu, 20 Jan 2011 19:20:32 -0600

Fascinating. From memory I mistyped addObject:forKey:, a method that, as far as I can discover, is not documented. Yet it works for dictionaries as verified by the count method. Perhaps an old NextStep anachronism left in the library?

My original project that hit this bug does use setObject_forKey_ and changing the test code I posted to use the correct method doesn't fix anything. The same symptoms occur.

I just tried changing the test code to storing the new objects in an AppleScript list instead of NSMutableDictionary and the program seems to run properly, although I haven't verified it by accessing any objects from the list. But I need a dictionary so this won't solve my problem. And keeping my data in AppleScript records is not realistic because there is no way to get a list of all its keys unless I keep converting it back to an NSDictionary, an overhead my program would not tolerate.

-- Dave

On Jan 20, 2011, at 3:25 PM, email@hidden wrote:


On 20 Jan 2011, at 09:51, Dave wrote:

dict's addObject_forKey_(anotherObj, i as string)


addObject_forKey_?

Try setObject_forKey_

Regards

Jonathan Mitchell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Severe ASOC runtime bug
      • From: Shane Stanley <email@hidden>
References: 
 >Severe ASOC runtime bug (From: Dave <email@hidden>)
 >Re: Severe ASOC runtime bug (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Severe ASOC runtime bug
  • Next by Date: Re: Severe ASOC runtime bug
  • Previous by thread: Re: Severe ASOC runtime bug
  • Next by thread: Re: Severe ASOC runtime bug
  • Index(es):
    • Date
    • Thread