Re: text color in NSTextView
Re: text color in NSTextView
- Subject: Re: text color in NSTextView
- From: Todd Ransom <email@hidden>
- Date: Tue, 26 Oct 2004 11:04:30 -0600
I have finally fixed this by checking "Allow user to change fons" in IB.
Which brings me to another question I've been harboring for a while. In IB you can select an NSTextView by some combination of clicks and double-clicks depending on your window layout. You get an attributes window that contains text color, background color, scrollbar size, etc. If you double-click the text view again, the attributes window still says it's giving you attributes of the NSTextView, but it only displays a subset of the properties (no scrollbar size, for instance). Also, some of the properties may not match the settings from the previous window.
Is this a bug in IB? Or some hidden feature I just don't understand?
TR
On Oct 25, 2004, at 6:00 PM, Todd Ransom wrote:
I have a text editing app based on NSTextView and a user has requested the ability to set foreground and background colors. I established a binding for background color and that works beautifully, but I am having problems with setting the text color. I see that NSTextView inherits the method setTextColor from NSText but it doesn't seem to do what the documentation leads me to believe it should do. The docs say "Sets the text color of all characters in the receiver..." but when I call setTextColor it only changes the color of newly typed characters. Existing text stays in whatever color it was before the change.
Ideally I would like to simply change the display font color for all characters in the textview, not the font used in the attributed string. I don't want the display settings to be saved with the document. Has anyone done this successfully?
thanks,
TR _______________________________________________
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
_______________________________________________
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