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: [NSApp runModalSession] from Carbon app




Le 6 avr. 08 à 17:04, Jean-Daniel Dupas a écrit :



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.



As I said, it is a cooperative thread, not a preemptive thread. It is created with

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

This email sent to 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>)



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.