Re: Severe ASOC runtime bug
Re: Severe ASOC runtime bug
- Subject: Re: Severe ASOC runtime bug
- From: Shane Stanley <email@hidden>
- Date: Mon, 24 Jan 2011 11:03:34 +1100
- Thread-topic: Severe ASOC runtime bug
I was curious to see how this affected tables. I took one of the sample apps
from my book, the one that builds a table using script objects as rows, and
modified applicationWillFinishLaunching_ to this:
on applicationWillFinishLaunching_(aNotification)
log "start"
set i to 0
repeat 10000 times
set i to i + 1
tell current application's Ad to set newAd to alloc()'s init()
tell newAd
setAdDescription_(i as text)
setAdColumns_(4)
setAdDepth_(16)
end tell
tell theArrayController to addObject_(newAd)
end repeat
log "end"
end applicationWillFinishLaunching_
It takes about 35 seconds, but it's otherwise fine. It wasn't so happy when
I went to 20,000.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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