- Inherits from:
- NSObject
Declared in:
- AppKit/NSStringDrawing.h
The Application Kit adds three methods to the NSString class to support drawing string objects directly in an NSView: drawAtPoint:withAttributes:, drawInRect:withAttributes:, and sizeWithAttributes:. The Application Kit adds similar method the NSAttributedString class. The two drawing methods draw a string object with a single set of attributes that apply to the entire string. To draw a string with multiple attributes, such as multiple text fonts, you must use an NSAttributedString.
- Drawing an NSString
- - drawAtPoint:withAttributes:
- - drawInRect:withAttributes:
- - sizeWithAttributes:
- (void)drawAtPoint:(NSPoint)aPoint
withAttributes:(NSDictionary *)attributes
See Also: - lockFocus (NSView)
- (void)drawInRect:(NSRect)aRect
withAttributes:(NSDictionary *)attributes
See Also: - lockFocus (NSView)
- (NSSize)sizeWithAttributes:(NSDictionary
*)attributes