• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView resizing bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView resizing bug?


  • Subject: NSTextView resizing bug?
  • From: Cryx <email@hidden>
  • Date: Thu, 2 May 2002 19:04:57 -0500

I've been attempting to debug this resize related oddity to no avail:

I have a window with a simple text view. I append text to the view and scroll to the bottom. This works fine, UNLESS I manually resize the window prior to adding any text. In this case, the very top of the view displays about one pixel of a row and its shifted to the right. If I select all and paste into another app, the rendered text is there, although the selection highlight makes it appear as if the view's coordinates are skewed such that the text is starting off up off screen and shifted to the right.

It's a bit odder though. Once the view actually fills (invisibly) and starts to scroll, the new lines are displayed correctly and the now offscreen region of the view will be visible if the view is manually scrolled back up with the scroll thumb. The still obscured lines in the region between the new lines and the offscreen region can be rendered by doing a selection drag.

All of this can be cured at any point by resizing the window a second time. If the view has had text inserting prior to resizing, it works correctly. So it seems the problem is related to resizing a text view with an empty text storage.

Is there perhaps some initialization routine that's supposed to be invoked? I can work around the problem by inserting some text in the view immediately, but that's rather undesirable.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: rightMouseDown: (NSEvent) theEvent
  • Next by Date: Re: How to know if a file is invisible
  • Previous by thread: Re: rightMouseDown: (NSEvent) theEvent
  • Next by thread: Int to NSString
  • Index(es):
    • Date
    • Thread