Re: How to detect when an NSTextView has finished being loaded into a window?

2011-02-22 Thread Keith Blount
view. Hmm, although I'm now wondering if maybe I should just set the scroll view's documentView to nil when it's off-window and do all this when the scroll view moves to the window... Thanks again and all the best, Keith --- On Tue, 2/22/11, Kyle Sluder wrote: > From: Kyle Slu

Re: How to detect when an NSTextView has finished being loaded into a window?

2011-02-21 Thread Kyle Sluder
On Mon, Feb 21, 2011 at 1:04 PM, Keith Blount wrote: > Hi Matt, > > Many thanks for the reply. Unfortunately that doesn't really work, as if it > is hidden in any way then it is off screen and therefore the artefacts bug > rears its ugly head. (The whole thing is in a tab view, and even if the t

Re: How to detect when an NSTextView has finished being loaded into a window?

2011-02-21 Thread Keith Blount
n Mon, 2/21/11, Matt Neuburg wrote: > From: Matt Neuburg > Subject: Re: How to detect when an NSTextView has finished being loaded into > a window? > To: "Keith Blount" > Cc: cocoa-dev@lists.apple.com > Date: Monday, February 21, 2011, 6:16 PM > On Mon, 21 Fe

Re: How to detect when an NSTextView has finished being loaded into a window?

2011-02-21 Thread Matt Neuburg
On Mon, 21 Feb 2011 06:22:35 -0800 (PST), Keith Blount 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 vi

How to detect when an NSTextView has finished being loaded into a window?

2011-02-21 Thread Keith Blount
Hello, I'm trying to detect when an NSTextView has finished being loaded into its window in a situation where -viewDidMoveToWindow won't work - is there another way of doing this that I'm overlooking? Here's the situation, and the reason -viewDidMoveToWindow won't work: I've spent the last wee