• 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: Binding SelectedText Background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Binding SelectedText Background (From: Erick Pérez <email@hidden>)
 >Re: Binding SelectedText Background (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: [iPhone] more UIScrollView
  • Next by Date: Re: Displaying dialog at shutdown
  • Previous by thread: Re: Binding SelectedText Background
  • Next by thread: App will not launch
  • Index(es):
    • Date
    • Thread