You have to disconnect the NSColorPanel and the NSTextView. You can do this by switching off "Font Panel" of the NSTextView.
- Willeke Op 3 feb 2014, om 20:45 heeft Leonardo het volgende geschreven: > Hi Willeke, > Yes, I click on the oForeColorWell, it gets activated and opens the > NSColorPanel open. Then when the NSTextView is the first responder, any time > I press the right or left arrow key and the text selection changes, the > color panel and the colorWell display the text foreColor. I would like to to > the same with the strokeColor, but I can't succeed. > > Regards > -- Leonardo > > >> Da: Willeke <willeke2...@gmail.com> >> Data: Sun, 2 Feb 2014 13:25:46 +0100 >> A: Leonardo <mac.iphone....@gmail.com> >> Oggetto: Re: How to display NSStrokeColorAttributeName on the NSColorPanel >> >> >> Op 1 feb 2014, om 17:12 heeft Leonardo het volgende geschreven: >> >>> It seems that, since the oStrokeColorWell is active, it automatically gets >>> its color value from the selected text. I would like to override the method >>> from which it takes the color value, but I cannot guess which one it is. >>> I unsuccessfully tried - (NSColor*)textColor; And I even tried to not to >>> override the method below textViewDidChangeSelection. Same trouble. >>> Any idea? >> >> How are the oForeColorWell and the text synchronized? Is the color panel >> open? >> >> - Willeke > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com