Attributed string not displaying with effects of attributes in an NSTextView...
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