How to set attibutes for NSString's drawInRect: withAttributes?
How to set attibutes for NSString's drawInRect: withAttributes?
- Subject: How to set attibutes for NSString's drawInRect: withAttributes?
- From: Fei Li <email@hidden>
- Date: Fri, 2 Nov 2001 13:27:42 -0700
Hello all,
I want to use NSString addition's drawInRect:(NSRect)
withAttributes:(NSDictionary*) to draw a string in a rect. But how can I set
attributes for the string? What kind of key and value do I need to set for
attributes' NSDictionary, and can I I change font, size for drawing the
strings by set this NSDictionary?
Thanks for any information!
Fei