From ec997b464203c0ab66c74e03683d23c7e4784f46 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 19 Dec 2000 18:40:21 +0000 Subject: [PATCH] Added a comment git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8369 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSText.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Headers/gnustep/gui/NSText.h b/Headers/gnustep/gui/NSText.h index 1a9271c26..ec37c16cd 100644 --- a/Headers/gnustep/gui/NSText.h +++ b/Headers/gnustep/gui/NSText.h @@ -33,6 +33,22 @@ #ifndef _GNUstep_H_NSText #define _GNUstep_H_NSText +/* + * The NSText class is now an abstract class. When you allocate an + * instance of NSText, an instance of NSTextView is always allocated + * instead. + * + * But you can still subclass NSText to implement your own text + * editing class not derived from NSTextView. NSText declares general + * methods that a text editing object should have; it has ivars to + * track the various options (editable, selectable, background color + * etc) and implementations for methods setting and getting these + * generic options and for quite some helper methods which are simple + * wrappers around the real basic editing methods. The real editing + * methods are not implemented in NSText, which is why it is abstract. + * To make a working subclass, you need to implement these methods. + * */ + #include #include #include