| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 6. Apr 2008, at 17:28, Jean-Daniel Dupas wrote:
Thank you for your time, Jean-Daniel. If I understand you correctly, you also notice that runModalSession does not return until the window goes away when being called from a Carbon app. Right? If yes, I wonder if anyone out there has any idea how to remedy this.
Le 6 avr. 08 à 17:04, Jean-Daniel Dupas a écrit :
As I said, it is a cooperative thread, not a preemptive thread. It is created with
Could I ask you how you create your thread? I'm using multi- threading with modal window without any issues.
The only issues with runModal i know is that by default, the modal run loop handle only a small subset of run loop sources that does not include network sources for example (so NSURLDownload will not process wil a modal window is running).
But with a multi-threaded application, this is not a problem as each thread has is own runloop and should no be affected by other thread activity.
NewThread(kCooperativeThread, ...
The preemptive threads created with MP... work fine
Kurt
Sorry to post one more time about this topic. After a couple of test, it look like this problem occurs only when you mix Carbon and Cocoa. With pur Cocoa it works well, but I did a small use case using Carbon and it effectively does not work as expected.
_______________________________________________ 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
| References: | |
| >[NSApp runModalSession] from Carbon app (From: Kurt Sutter <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Jean-Daniel Dupas <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Kurt Sutter <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Jean-Daniel Dupas <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Kurt Sutter <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Jean-Daniel Dupas <email@hidden>) | |
| >Re: [NSApp runModalSession] from Carbon app (From: Jean-Daniel Dupas <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.