Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
- Subject: Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
- From: Neil Clayton <email@hidden>
- Date: Tue, 9 Mar 2010 10:26:44 +1300
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Ta daaa!
And that was it! thank you.
drawRect works just fine.
Neil
On 9/03/2010, at 10:02 AM, Kevin Wojniak wrote:
> Never mind, ignore that. Use drawInRect instead of drawAtPoint. My guess is that when when you draw at a point, Cocoa obviously doesn't have a boundary to right (or center) align the text to, so it just defaults to left-aligned.
_______________________________________________
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