• 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
applescript transactions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript transactions


  • Subject: applescript transactions
  • From: Jesse Grosjean <email@hidden>
  • Date: Thu, 15 Jan 2004 10:00:03 -0500

The default cocoa applescript behavior seems to be that each new apple event is processed in the applications run loop along with other things like redrawing the screen. For my application this has the result of slowing things down since if you add 1000 objects the interface will be updated 1000 times.

I'm wondering if there is a way to force all incoming applescript events to be processed at once, without giving the run loop a chance to update the interface?

I see some mention of applescript transactions... is this what they do? My application doesn't support database like transactions (where data is only committed to disk at end of transaction), but I would like the ability to freeze out the applications run loop until a sequence of apple events have been processed.

What is the recommended way to do this sort of thing from a cocoa based application?

Thanks,
Jesse
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: applescript transactions
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: NSData to plist...
  • Next by Date: Comparing Objects' Classes
  • Previous by thread: NSData to plist...
  • Next by thread: Re: applescript transactions
  • Index(es):
    • Date
    • Thread