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: "Joe Goh" <email@hidden>
- Date: Tue, 23 Jan 2007 13:46:49 +0800
On 1/23/07, I. Savant <email@hidden> wrote:
The same way the 'pros' do it. ;-) NSString's -sizeWithAttributes:
method will do what you're looking for.
Thanks! That's exactly what I needed.
Really, you should spend some time going through the documentation
(string drawing, API reference, etc.) ... this is well-covered.
Actually, I did spend some time reading the docs, I somehow misssed
that method when I was pouring through the docs for NSString. Oops!
Time for another coffee...
On a side note, why are these methods placed in the NSString AppKit
Additions documentation instead of being merged into the main NSString
documentation? Is this a historical remnant from the NeXT days?
Cheers!
Joe Goh
FunkeeMonk Technology
http://www.funkeemonk.com/
_______________________________________________
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