Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.