• 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
Attributed string not displaying with effects of attributes in an NSTextView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attributed string not displaying with effects of attributes in an NSTextView...


  • Subject: Attributed string not displaying with effects of attributes in an NSTextView...
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 17 Feb 2006 18:04:05 -0800

I have an NSTextView dropped into a window in a nib set to "multiple
fonts allowed" and I programmatically in awakeFromNib send the text
view an setRichText:YES message (the outlet is set as expected). I
think the later is redundant to the "multiple fonts allowed" setting
in IB.

Anyway when I fill the text storage with the following attributed
string I see the text but the color of the text is not affected
(should be blue). Any ideas on what I am forgetting? (likely a stupid
oversight on my part)

Printing description of textStorage:
Shawn's Mac{
    NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0, spc=3.33";
    NSStrokeColor = NSCalibratedRGBColorSpace 0 0 1 1;
}->{NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0,
spc=3.33"; }All{
    NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0, spc=3.33";
    NSStrokeColor = NSCalibratedRGBColorSpace 0 0 1 1;
}: Hello?{NSFont = "Helvetica 12.00 pt. P [] (0x0537a440)
fobj=0x0535aec0, spc=3.33"; }
{}Shawn's Mac{
    NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0, spc=3.33";
    NSStrokeColor = NSCalibratedRGBColorSpace 0 0 1 1;
}->{NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0,
spc=3.33"; }All{
    NSFont = "Helvetica 12.00 pt. P [] (0x0537a440) fobj=0x0535aec0, spc=3.33";
    NSStrokeColor = NSCalibratedRGBColorSpace 0 0 1 1;
}: What is wrong?{NSFont = "Helvetica 12.00 pt. P [] (0x0537a440)
fobj=0x0535aec0, spc=3.33"; }

Thanks,
-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Attributed string not displaying with effects of attributes in an NSTextView...
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Using NSDateFormatter, and sorting issues
  • Next by Date: Re: Attributed string not displaying with effects of attributes in an NSTextView...
  • Previous by thread: Re: How to specify document extension programmatically
  • Next by thread: Re: Attributed string not displaying with effects of attributes in an NSTextView...
  • Index(es):
    • Date
    • Thread