• 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 set the foreground and background colors of selected text in a field editor (NSTextView)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?


  • Subject: Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?
  • From: Stephane Sudre <email@hidden>
  • Date: Tue, 10 Apr 2012 13:44:59 -0700

With the delegate method, you get the appropriate NSTextView field
editor. The issue is that you're not editing this NSTextView, you're
editing the NSTextField.

At least that's my take on this.

On Tue, Apr 10, 2012 at 12:09 PM, Kyle Sluder <email@hidden> wrote:
> On Apr 10, 2012, at 11:29 AM, Stephane Sudre wrote:
>
>> Allowing rich text, subclassing NSTextField and add some methods from
>> NSTextView did not work so far.
>
> Subclassing NSTextField and implemented -setUpFieldEditor didn't do the trick?
>
> --Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?
      • From: Michael Crawford <email@hidden>
References: 
 >How to set the foreground and background colors of selected text in a field editor (NSTextView)? (From: Michael Crawford <email@hidden>)
 >Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)? (From: Stephane Sudre <email@hidden>)
 >Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?
  • Next by Date: Converting between property names?
  • Previous by thread: Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?
  • Next by thread: Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?
  • Index(es):
    • Date
    • Thread