Re: Help me fix a bug: endless recursion in NSTextView?
Re: Help me fix a bug: endless recursion in NSTextView?
- Subject: Re: Help me fix a bug: endless recursion in NSTextView?
- From: Ken Thomases <email@hidden>
- Date: Fri, 08 Feb 2013 13:19:47 -0600
Hi,
On Feb 8, 2013, at 12:45 PM, Oleg Krupnov wrote:
> Thanks! This information sounds relevant, but I'm still puzzled. All I
> do is just use a NSTextView on a window. The text view is resizable by
> width and height, i.e. the text is wrapped when I change the view's
> width, and scroll bar appears when I change its height. All pretty
> standard. I do not delve under the hood, do not assemble my own text
> editor from the components of the text system. I don't use text
> container directly in my code.
I'm not sure what's going on. You should check the following:
[textView isVerticallyResizable]
[textView isHorizontallyResizable]
[[textView textContainer] heightTracksTextView]
[[textView textContainer] widthTracksTextView]
> Besides, even if this was the reason, why does it not manifest in
> normal use cases, but only in some very rare and obscure
> circumstances? Namely, when MacBook wakes from sleep mode? There were
> no reports even from iMacs or MacMinis, only MacBooks. Mostly it
> happens on 10.8.2, but one report was assumably from 10.7.5.
I'm not sure. It may have something to do with Retina displays. I would guess that the OS is generating a display configuration change notification when it wakes, which is causing the view to refresh its layout. You may be able to reproduce the problem if you manually change the display configuration on another, otherwise-unaffected system.
Regards,
Ken
_______________________________________________
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