Copyright ã1996 by NeXT Software, Inc.  All Rights Reserved.

;SettingTextualAttributes.rtfd;;¬  Next Section	;ManagingImages.rtfd;;¬  Previous Section

Customizingtitlestextfieldsandscrollviews;¬Customizing titles, text fields, and scroll views 

¬	Set background and text color, text alignment, border style, tag, and options affecting access to text.

The objects that exist principally to display textÐtext fields, titles, and scroll viewsÐhave controls for initializing those objects with various characteristics. To see what certain effects look like, drag a text field onto a window and click the buttons on this display. The Title object is just a specially configured text field: non-selectable with transparent backgrounds and no borders.

¬

An NSScrollView object is a compound object consisting of one or two NSScroller objects and an NSClipView object, which has as its document view (subview) an NSText object in Interface Builder. The document view is what is scrolled. The NSScrollView object has a slightly different Attributes display: no text alignment buttons and a different set of options.

A tag is an internal identifier of an object that you can use in your code. See ªUsing tagsº in this chapter for more information.  ;UsingTags.rtfd;;¬

For more information on the NSTextField  ;/NextLibrary/Frameworks/AppKit.framework/Resources/English.lproj/Documentation/Reference/Classes/NSTextField.rtfd;;¬, NSScrollView  ;/NextLibrary/Frameworks/AppKit.framework/Resources/English.lproj/Documentation/Reference/Classes/NSScrollView.rtfd;;¬, NSScroller  ;/NextLibrary/Frameworks/AppKit.framework/Resources/English.lproj/Documentation/Reference/Classes/NSScroller.rtfd;;¬, NSText  ;/NextLibrary/Frameworks/AppKit.framework/Resources/English.lproj/Documentation/Reference/Classes/NSText.rtfd;;¬, and NSClipView   ;/NextLibrary/Frameworks/AppKit.framework/Resources/English.lproj/Documentation/Reference/Classes/NSClipView.rtfd;;¬  classes, see the Application Kit Reference.

Text Field and Scroll View Options

Option	Description
¬

Editable 	Allows the user to edit text.
¬

Selectable 	Allows the user to select text.
¬

Scrollable (NSTextField)	Text scrolls to the left if necessary.
¬

Multiple fonts allowed (NSScrollView)	Text is in RTF format. 
¬

Graphics allowed (NSScrollView)	Text is in RTFD format (graphics can be inserted).
¬

Related Concept:  ;SettingAttributesConcepts.rtfd; linkMarkername CompoundObjects;,  Compound Objects