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: Kyle Sluder <email@hidden>
- Date: Mon, 21 Feb 2011 19:19:32 -0800
On Mon, Feb 21, 2011 at 1:04 PM, Keith Blount <email@hidden> 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 text view is in a different tab to the visible one while it is set up, the artefacts bug appears.)
Are you running on Snow Leopard?
Also, from your original description, it sounds like you intend for
the text view to possibly be deallocated during -viewDidMoveToWindow.
This sounds like a recipe for disaster. Instead, you should try
hooking up additional text views/containers to the same layout
manager. Your first text view will therefore always exist; in
single-view mode it will be the only text view, whereas in page layout
mode it will be the first in the chain of text views sharing the
layout manager and text storage.
--Kyle Sluder
_______________________________________________
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