Re: Binding SelectedText Background
Re: Binding SelectedText Background
- Subject: Re: Binding SelectedText Background
- From: Ross Carter <email@hidden>
- Date: Wed, 02 Jun 2010 12:16:04 -0400
On Jun 1, 2010, at 4:25 PM, Keary Suska wrote:
> On Jun 1, 2010, at 11:18 AM, Erick Pérez wrote:
>
>> Hi:
>> I manage to bind the text color to a color well, one of those many
>> tutorials you can find online, but what i want is to change the color
>> of the selected text's background. Can i bind that ?
>
> Bookmark this page: http://developer.apple.com/mac/library/documentation/Cocoa/Reference/CocoaBindingsRef/CocoaBindingsRef.html . It tells you everything you can bind for all Cocoa views.
>
> You will notice that you can't. Notice that you generally can only bind values that effect the entire view/control. I believe what you are after can be specified using an NSParagraphStyle, but not via bindings.
I think you want to look at NSTextView -selectedTextAttributes
_______________________________________________
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