Re: How to draw NSString with centered alignment?
Re: How to draw NSString with centered alignment?
- Subject: Re: How to draw NSString with centered alignment?
- From: "I. Savant" <email@hidden>
- Date: Tue, 23 Jan 2007 00:34:06 -0500
On Jan 23, 2007, at 12:30 AM, Joe Goh wrote:
How do I get the width of an attributed string without drawing it
first?
The same way the 'pros' do it. ;-) NSString's -sizeWithAttributes:
method will do what you're looking for.
Really, you should spend some time going through the documentation
(string drawing, API reference, etc.) ... this is well-covered.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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