Re: Corruption of text display in NSTextView
Re: Corruption of text display in NSTextView
- Subject: Re: Corruption of text display in NSTextView
- From: John Anderson <email@hidden>
- Date: Mon, 24 Jun 2002 10:07:09 -0700
Found the solution to this one, and thought I should post the the
solution to the list for archival sake.
Still don't know why the problem is occurring. I'm dynamically adding a
subview which contains an NSTextView. I set the frame differently
depending on certain conditions. Anyway, if you're seeing corruption
when you scroll an NSTextView, just add the following to one of your
awakeFromNib message handlers:
[[myTextView superview] setCopiesOnScroll:NO];
Good luck with all of your ventures :-)
John
On Wednesday, June 19, 2002, at 09:10 AM, John Anderson wrote:
I've searched through the archives but can't seem to find this problem
elsewhere. Has anyone else come across visual corruption of
NSTextView's contents? It's hard to explain, so I enclosed a picture:
[demime 0.98b removed an attachment of type image/gif which had a name
of Picture-1.gif]
This seems to happen when the textview automatically resizes past the
size of the NSScrollView, or when the user scrolls.
(Sorry, but my references will get painfully application-specific at
this point)
The view is used in a Presence plug-in (www.everchanging.com) and it
works fine when the plugin is used to enter content, but not when
entering options. But I can't find any real difference between the two
situations in my code, other than the fact that the textview is smaller
if it's an option. But the resizing is done the same way in either
situation. Feel free to download the plug-in source at
http://www.everchanging.com/downloads/MultiLineText.tar.gz
Thanks!
John Anderson
_______________________________________________
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.
_______________________________________________
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.