[RESOLVED] Re: NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping?
[RESOLVED] Re: NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping?
- Subject: [RESOLVED] Re: NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping?
- From: Luke Evans <email@hidden>
- Date: Tue, 15 Jan 2008 20:11:49 -0800
Hi Aki,
Perfect.
Of course, now I've searched for NSStringDrawingUsesLineFragmentOrigin
in the docs, I see there's a discussion of it on the -
drawWithRect:options:attributes: method. This is missing from the the
-boundingRectWithSize:options:attributes (though you can get to the
former note by following a couple of "see also" links - or by being
more diligent in reading around the context of the method at hand than
I was!).
Thanks a lot for shedding the light.
-- Lwe
On 15-Jan-08, at 5:31 PM, Aki Inoue wrote:
Luke,
Unlike other methods declared in the NSStringDrawing category, -
drawWithRect:options:attributes: and -
boundingRectWithSize:options:attributes: work in single-line,
baseline rendering configuration by default.
NSStringDrawingUsesLineFragmentOrigin flag switches them to behave
in multiline configuration.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden