The NSTextView is indeed richtext and this is what I need. Do I need to 
subclass the NSColorWell or the NSTextView? I need to be able to change the 
color of the text as well...

Thanks,

Bernard.


On 23 Jun 2010, at 09:02, Scott Anguish wrote:

> is the NSTextView set as allowing rich text? if so, this is expected, and 
> you’d need to do some subclassing.
> 
> otherwise, just make sure the textview richtext support is off (assuming that 
> is consistent with your application’s needs)
> 
> 
> On Jun 23, 2010, at 2:49 AM, Bernard Knaepen wrote:
> 
>> Hi all,
>> 
>> I have a window created in IB containing a NSScrollView embedding a 
>> NSTextView. In the same window I have a NSColorWell which is supposed to 
>> store the color preference for a given object not related to the NSTextView.
>> 
>> I would like to be able to change the color of the NSColorWell without 
>> affecting the NSTextView at all. However, if I start to type in the text 
>> field and then click on the NSColorWell, I am able to change the color of 
>> the well but this also affects the color of the character that will be typed 
>> later on in the text field. In other words, the color panel changes the 
>> color of both the well and the text which is not what I want.
>> 
>> I spent a lot of time looking in the doc to isolate this NSColorWell from 
>> the NSTextView without finding a solution.
>> 
>> I would be grateful if someone could help me with this or point me to the 
>> relevant part of the documentation.
>> 
>> Thanks,
>> 
>> Bernard.
>> 
>> 
>> _______________________________________________
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/scott%40cocoadoc.com
>> 
>> This email sent to sc...@cocoadoc.com
> 

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to