Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ReceiveNextEvent and Cocoa windows?



On Jun 19, 2007, at 9:48 PM, Eric Schlegel wrote:


On Jun 19, 2007, at 9:14 PM, John Stiles wrote:

Well, that was my original thought when debugging this code also. But if there is a run loop nested inside of ours, and someone calls QuitEventLoop(), why would our event loop handler get the quit message? Shouldn't the innermost event loop get the quit message, absorb it, and then our event loop would keep on happily pulling messages, none the wiser?

Yes, that's what will happen - so if you're getting eventLoopQuitErr, then someone is calling QuitEventLoop while immediately inside your runloop invocation. For example, WakeUpProcess() will call QuitEventLoop.

OK, thanks for the pointer. We can take it from here.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >ReceiveNextEvent and Cocoa windows? (From: John Stiles <email@hidden>)
 >Re: ReceiveNextEvent and Cocoa windows? (From: Eric Schlegel <email@hidden>)
 >Re: ReceiveNextEvent and Cocoa windows? (From: John Stiles <email@hidden>)
 >Re: ReceiveNextEvent and Cocoa windows? (From: Eric Schlegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.