Re: Controlling selection in NSTextFields
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