• 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: text caret color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text caret color


  • Subject: Re: text caret color
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 17 Nov 2005 17:44:28 -0800


On Nov 17, 2005, at 10:54 AM, I. Savant wrote:

NSTextView has a -setInsertionPointColor: method. That doesn't help with NSTextField, but with a few configuration changes, an NSTextView should work much the same in most any situation.


NSTextField uses a field editor, which will be an NSTextView, to handle its editing. You can obtain the field editor from the textfield via the -currentEditor method. The question of when to manipulate the field editor depends a bit on what you are doing-- whether you are subclassing NSTextField, for example, or acting as its delegate, or something else. Also note that the field editor is shared with other controls in the same window.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: text caret color
      • From: Andrew Merenbach <email@hidden>
References: 
 >text caret color (From: Louis Sinclair <email@hidden>)
 >Re: text caret color (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Best way to animate series of images in 10.4
  • Next by Date: Re: Best way to animate series of images in 10.4
  • Previous by thread: Re: text caret color
  • Next by thread: Re: text caret color
  • Index(es):
    • Date
    • Thread