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 01:27:10 -0500
On Jan 23, 2007, at 12:46 AM, Joe Goh wrote:
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...
http://developer.apple.com/documentation/Cocoa/Conceptual/
TextLayout/Tasks/DrawingStrings.html
http://developer.apple.com/documentation/Cocoa/Conceptual/
AttributedStrings/Tasks/DrawingAttrStrings.html
Two good things to read. Search for 'string drawing', etc. and
you'll find them pretty quickly.
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?
I *believe* AppKit requires the window server (GUI). Things like
NSFont, NSParagraphStyle and the text drawing routines are all part
of AppKit because they rely on the concept of screen coordinates,
dimensions, etc. I *may* be misstating some or all of this, mind you,
so I welcome correction on this, but I believe it to be true so there
you have it. :-)
--
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