Re: Severe ASOC runtime bug
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 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