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: [KIND OF SOLVED] Re: PDFView won't display the first time?




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >PDFView won't display the first time? (From: Nick Zitzmann <email@hidden>)
 >[KIND OF SOLVED] Re: PDFView won't display the first time? (From: Nick Zitzmann <email@hidden>)
 >Re: [KIND OF SOLVED] Re: PDFView won't display the first time? (From: glenn andreas <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.