Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RESOLVED] Re: NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping? (From: Luke Evans <email@hidden>)
 >Re: NSString -boundingRectWithSize:, is this supposed to work with automatic word wrapping? (From: Aki Inoue <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.