• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLDownload and Modal Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSURLDownload and Modal Dialog (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Making a custom tabbed view control. Need suggestions.
  • Next by Date: Re: Character for Glyph?
  • Previous by thread: NSURLDownload and Modal Dialog
  • Next by thread: Making a custom tabbed view control. Need suggestions.
  • Index(es):
    • Date
    • Thread