Re: confusing events
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