• 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: Any actor or coroutine implementations for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any actor or coroutine implementations for Cocoa?


  • Subject: Re: Any actor or coroutine implementations for Cocoa?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 30 Apr 2008 09:18:15 -0700

On 29 Apr '08, at 7:16 PM, Michael Ash wrote:

There were a lot of problems with Cocoa and returning to the runloop
without returning back the way I came

Yes, I can see that there would have to be a rule that only the main coroutine (i.e. the original 'real' stack) gets to use the runloop.


I think this can be dealt with by having (in your example) a separate coroutine that brings up the sheet; then that coroutine blocks until the sheet is dismissed, returning control to the main routine that returns back to the runloop.

In the actor model, most of the application code would be in the form of actors waiting for specific events (menus, buttons, etc.), that would get a message when the event occurred, do their thing, then return or yield. The main routine would mostly be receiving the events from the runloop and dispatching them as messages to actors.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Any actor or coroutine implementations for Cocoa?
      • From: "Michael Ash" <email@hidden>
References: 
 >Any actor or coroutine implementations for Cocoa? (From: Jens Alfke <email@hidden>)
 >Re: Any actor or coroutine implementations for Cocoa? (From: Jens Alfke <email@hidden>)
 >Re: Any actor or coroutine implementations for Cocoa? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: Is there any compression library for Cocoa?
  • Next by Date: Re: Stuttering Multiple QTMovieLayers in Single Window
  • Previous by thread: Re: Any actor or coroutine implementations for Cocoa?
  • Next by thread: Re: Any actor or coroutine implementations for Cocoa?
  • Index(es):
    • Date
    • Thread