Opening an NSPanel in FCP 7 blocks in a runModalSession session loop
Opening an NSPanel in FCP 7 blocks in a runModalSession session loop
- Subject: Opening an NSPanel in FCP 7 blocks in a runModalSession session loop
- From: Peter T <email@hidden>
- Date: Thu, 04 Aug 2011 16:54:28 +0100
I'm trying to show an NSPanel window in FCP 7 and use NSModalSession to manage the window's own run-loop using the following code template:
// create NSPanel ... myPanel
NSModalSession session = [NSApp beginModalSessionForWindow:myPanel];
for (;;)
{
if ([NSApp runModalSession:session] != NSRunContinuesResponse)
break;
[self doSomeWork];
}
[NSApp endModalSession:session];
// close and release myPanel ...
However, I'm find that the runModalSession: method call is blocking, so that the call to doSomeWork: method (in this case) is never reached? Is this a known (Carbon) issue with FCP 7? Is there a work-around?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden