Inherits From:
NSObject
Declared In:
AppKit/NSStringDrawing.h
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.drawAtPoint:
(NSPoint)aPoint withAttributes:
(NSDictionary *)attributes
Draws the receiver with the font and other display characteristics of attributes, at aPoint in the currently focused NSView. You should only invoke this method when an NSView has PostScript focus.
See also:
- lockFocus
(NSView)
drawInRect:
(NSRect)aRect withAttributes:
(NSDictionary *)attributes
Draws the receiver with the font and other display characteristics of attributes, within aRect in the currently focused NSView. You should only invoke this method when an NSView has PostScript focus.
See also:
- lockFocus
(NSView)
size
WithAttributes:
(NSDictionary *)attributes
Returns the bounding box size that the receiver occupies when drawn with attributes.