O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSTextTab — Mac OS X 10.0

Synopsis

This class is used by the class NSParagraphStyle to encapsulate information about a tab stop, such as alignment (left, right, center, etc.) and location of the stop relative to the alignment edge. To create a text tab object, use the method initWithType:location:. For more information on Cocoa’s text handling infrastructure, see Chapter 5.

image with no caption

@interface NSTextTab : NSObject <NSCoding, NSCopying>
                                  // Initializers
   - (id)initWithType:(NSTextTabType)type 
                                 location:(float)loc;
                                  // Instance Methods
   - (float)location;
   - (NSTextTabType)tabStopType;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;
                                  // Methods Implementing NSCopying
   - (id)copyWithZone:(NSZone *)zone;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required