Blurred NSScrollView
Blurred NSScrollView
- Subject: Blurred NSScrollView
- From: Wesley Miaw <email@hidden>
- Date: Tue, 8 Apr 2003 23:55:03 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am putting an NSMutableAttributedString into an NSScrollView's text
storage. The string has several underlined links, some blue text, and
some red text. The basic construction is this:
NSMutableAttributedString *text = [[NSMutableAttributedString alloc]
initWithString:@"" attributes:nil];
while (record = [enumerator nextObject]) {
[text appendAttributedString:[self
stringRepresentationForRecord:record]];
[text appendAttributedString:newline];
}
[[[contentView documentView] textStorage] setAttributedString:text];
[text release];
- - (NSAttributedString *)stringRepresentationForRecord:(id)record
returns an autoreleased NSMutableAttributedString.
The content shows up fine. However, when I scroll the text, everything
blurs vertically. I can get it to go back to normal if I click in the
NSTextView or select parts of the NSTextView.
Has anyone else run into this problem? Any solutions?
Thanks,
- --
Wesley Miaw, Wesley Miaw Consulting
http://www.wesman.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iD8DBQE+k5mdQv4agqRAk2kRAnUWAJwNl6RDVw/dnTKzXwP7VSCQ41BbegCgm2UX
LxybY7mb7cZ1h13KR88yRjA=
=4Rer
-----END PGP SIGNATURE-----
_______________________________________________
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.