• 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
Blurred NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: baffled
  • Next by Date: Modify highlight colour of row, ala iTunes or Safari
  • Previous by thread: Re: baffled
  • Next by thread: Modify highlight colour of row, ala iTunes or Safari
  • Index(es):
    • Date
    • Thread