Re: NSStringDrawing
Re: NSStringDrawing
- Subject: Re: NSStringDrawing
- From: "Sherm Pendley" <email@hidden>
- Date: Thu, 14 Aug 2008 11:39:36 -0400
On Thu, Aug 14, 2008 at 11:31 AM, MF <email@hidden> wrote:
> Hello!
Howdy.
> I tried to draw strings in the center of a rectangle. While it's alright to
> execute the code, and the font is correctly shown, the alignment is wrong.
> (still on the left side...)
...
> [NSDictionary dictionaryWithObjectsAndKeys: font, NSFontAttributeName,
> style,NSFontAttributeName,nil];
That second key should be NSParagraphStyleAttributeName.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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