• 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: Controlling selection in NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling selection in NSTextFields


  • Subject: Re: Controlling selection in NSTextFields
  • From: "John C. Randolph" <email@hidden>
  • Date: Sun, 11 Nov 2001 04:29:39 -0800

On Saturday, November 10, 2001, at 05:02 PM, Rainer Brockerhoff wrote:


Anyway, why is it called a "field editor" in some contexts and a "text object" in others? Just to trip me up? :-)

Not "a" field editor, "the" field editor. Every window has one. The field editor is a shared text object, used by any controls in the window that need to accept text input.

From the NSWindow documentation:

"The field editor is provided as a convenience and can be used however your application sees fit. Typically, the field editor is used by simple text-bearing objects-for example, an NSTextField object uses its window's field editor to display and manipulate text. The field editor can be shared by any number of objects and so its state may be constantly changing."

-jcr

"The problem with trying to child-proof the world, is that it makes people neglect the far more important task of world-proofing the child." -- Hugh Daniel


  • Follow-Ups:
    • Re: Controlling selection in NSTextFields
      • From: Rainer Brockerhoff <email@hidden>
References: 
 >Re: Controlling selection in NSTextFields (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: Controlling selection in NSTextFields
  • Next by Date: Re: New Cocoa Programmer
  • Previous by thread: Re: Controlling selection in NSTextFields
  • Next by thread: Re: Controlling selection in NSTextFields
  • Index(es):
    • Date
    • Thread