• 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: 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

References: 
 >Re: Severe ASOC runtime bug (From: Dave <email@hidden>)

  • Prev by Date: Re: Severe ASOC runtime bug
  • Next by Date: Simple stmt to get dock tile fails
  • Previous by thread: Re: Severe ASOC runtime bug
  • Next by thread: Simple stmt to get dock tile fails
  • Index(es):
    • Date
    • Thread