• 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: confusing events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: confusing events


  • Subject: Re: confusing events
  • From: "Shawn Erickson" <email@hidden>
  • Date: Mon, 10 Sep 2007 08:50:09 -0700

On 9/10/07, Gerriet M. Denkmann <email@hidden> wrote:

> All run in the same thread (I did log [NSThread currentThread]).
> I think this, i.e. the fact that the method triggered by an event
> does NOT run to its end, but gets interruped by another method (in
> the same thread), extremely confusing.
> Could someone point to some helpful documentation ?

A thread wont jump to do something else unless the instructions in
that thread make it do that other thing (ignoring signals, etc.).

You didn't list what you do in main. As a guess I think you are
triggering the running of the runloop in your "main" method. This
allows the runloop to pickup an event from DO and result in the
behavior you are reporting.

As a side note I think using "main" as a method name could confuses
others given main is normally only seen with the C entry function
"main" and in the Java realm static main, etc. In fact I have seen GCC
warn about use of main in some contexts.

-Shawn
_______________________________________________

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: confusing events
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >confusing events (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: SOLVED: Using the tab key to cycle through custom NSViews?
  • Next by Date: the mechanics of writing over fullscreen
  • Previous by thread: confusing events
  • Next by thread: Re: confusing events
  • Index(es):
    • Date
    • Thread