Re: [KIND OF SOLVED] Re: PDFView won't display the first time?
Re: [KIND OF SOLVED] Re: PDFView won't display the first time?
- Subject: Re: [KIND OF SOLVED] Re: PDFView won't display the first time?
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 28 Mar 2007 14:03:55 -0600
On Mar 28, 2007, at 1:59 PM, glenn andreas wrote:
This smells like the classic "something needs to happen in the main
run loop but you're running the a modal run loop so it doesn't"
sort of problem that is also seen with things like embedding a
WebView (or using NSURLDownload) in a dialog.
I'm using NSURLDownload in a dialog without any problems...
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]];
(which works for WebViews)
Thanks, but this didn't work for PDFView.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden