StrokeColor in NSTextView
StrokeColor in NSTextView
- Subject: StrokeColor in NSTextView
- From: Lorenzo <email@hidden>
- Date: Fri, 08 Jun 2007 16:50:24 +0200
Hi,
I have a NSColorWell which I use to set the strokeColor of the selected text
in my NSTextView.
- (IBAction)ChooseTextStrokeColor:(id)sender
{
[mTextEditorTextView changeAttributes:self];
}
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?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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