• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: StrokeColor in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >StrokeColor in NSTextView (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Value With Pattern binding not working as expected
  • Next by Date: CoreData mutableSetValueForKey does NOT return a NSMutableSet
  • Previous by thread: StrokeColor in NSTextView
  • Next by thread: CoreData mutableSetValueForKey does NOT return a NSMutableSet
  • Index(es):
    • Date
    • Thread