Re: StrokeColor in NSTextView
Re: StrokeColor in NSTextView
- Subject: Re: StrokeColor in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Fri, 8 Jun 2007 09:17:07 -0700
On Jun 8, 2007, at 7:50 AM, Lorenzo wrote:
When I change the strokeColor, the
convertAttributes:(NSDictionary*)attributes
is invoked properly. But, any time I change the strokeColor of the
selected
text, I get the whole text color change. I mean, the foreColor and the
strokeColor change both. Now, I set the attribute dictionary well.
It's not
my mistake. I suppose the ColorPanel keeps on sending messages to the
forecolor of the selected text.
How to say that this NSColorWell must act only on the strokeColor
and not on
the ForeColor?
This is a little awkward because the default behavior is to change
the foreground color of the active text view. The most obvious thing
to try would be subclassing NSTextView and overriding -changeColor:
to do nothing if your stroke color well is active.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden