• 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: How to display NSStrokeColorAttributeName on the NSColorPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display NSStrokeColorAttributeName on the NSColorPanel


  • Subject: Re: How to display NSStrokeColorAttributeName on the NSColorPanel
  • From: Willeke <email@hidden>
  • Date: Tue, 04 Feb 2014 12:50:54 +0100

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 <email@hidden>
>> Data: Sun, 2 Feb 2014 13:25:46 +0100
>> A: Leonardo <email@hidden>
>> 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 (email@hidden)

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:

This email sent to email@hidden


  • Prev by Date: Managing image loading
  • Next by Date: Re: Managing image loading
  • Previous by thread: Re: How to display NSStrokeColorAttributeName on the NSColorPanel
  • Next by thread: Re: Legal Opinion on GCUndoManager
  • Index(es):
    • Date
    • Thread