Re: NSURLDownload and Modal Dialog
Re: NSURLDownload and Modal Dialog
- Subject: Re: NSURLDownload and Modal Dialog
- From: glenn andreas <email@hidden>
- Date: Wed, 16 Nov 2005 10:09:39 -0600
On Nov 16, 2005, at 9:11 AM, Stephane Sudre wrote:
Could it be possible that NSURLDownload is not compatible with
Modal Dialogs launched via [NSApp runModalForWindow:]?
The delegate methods for NSURLDownload are never called in this case.
They are called when you use a Sheet Window.
Could it be considered a bug?
I've seen similar problems (with a WebView not loading), but
basically when a modal dialog is run you're not on the main run loop
anymore.
So what you can try is rolling your own modal session
(beginModalSessionForWindow:, etc...), and inside that loop add:
[[NSRunLoop currentRunLoop] runUntilDate: [NSDate
dateWithTimeIntervalSinceNow:0.1]];
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden