Re: How to detect when an NSTextView has finished being loaded into a window?
Re: How to detect when an NSTextView has finished being loaded into a window?
- Subject: Re: How to detect when an NSTextView has finished being loaded into a window?
- From: Matt Neuburg <email@hidden>
- Date: Mon, 21 Feb 2011 10:16:53 -0800
On Mon, 21 Feb 2011 06:22:35 -0800 (PST), Keith Blount <email@hidden> said:
> I've also tried only posting the notification after a delay of 0, which works and avoids the crash, but is a little slow - you can see the original text view getting loaded on screen before being swapped for the multiple page view.
>
If the nub of the remaining problem is what "you can see", I wonder why you don't simply have these text views be hidden. That way they are in the window (so that they are loaded correctly) but the user sees nothing. Or, if that doesn't work, cover them with something else (another view, or even a secondary window). You can cover the intervening time with a progress indicator of some sort. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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