• 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: Understanding the Run loop idea and the updating of controls during long operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding the Run loop idea and the updating of controls during long operations


  • Subject: Re: Understanding the Run loop idea and the updating of controls during long operations
  • From: Scott Ribe <email@hidden>
  • Date: Sun, 7 Nov 2010 08:00:31 -0700

On Nov 7, 2010, at 4:05 AM, eveningnick eveningnick wrote:

> I am  trying to  understand these techniques step by step, it is really
> difficult for me when everything is hidden :(

You seem to be trying to find ways to use the frameworks in ways that are not intended. Why are you not using NSApplicationMain in the normal way?

Two reasonable choices are:

- A single thread, where your processing is implemented as a finite state machine that can yield after a bit of work and return to the run loop, but sets an NSTimer to fire in 0 seconds just before it returns.

- Multiple threads, figure out your bug with synchronization around AppleScripts (there is no reason the library would run slower just because you add a new thread).

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Understanding the Run loop idea and the updating of controls during long operations
      • From: eveningnick eveningnick <email@hidden>
References: 
 >Understanding the Run loop idea and the updating of controls during long operations (From: eveningnick eveningnick <email@hidden>)
 >Re: Understanding the Run loop idea and the updating of controls during long operations (From: Ken Thomases <email@hidden>)
 >Re: Understanding the Run loop idea and the updating of controls during long operations (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Re: Understanding the Run loop idea and the updating of controls during long operations
  • Next by Date: Re: Understanding the Run loop idea and the updating of controls during long operations
  • Previous by thread: Re: Understanding the Run loop idea and the updating of controls during long operations
  • Next by thread: Re: Understanding the Run loop idea and the updating of controls during long operations
  • Index(es):
    • Date
    • Thread