• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSStringDrawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSStringDrawing (From: MF <email@hidden>)

  • Prev by Date: NSStringDrawing
  • Next by Date: NSToolbarItem, textured background & Tiger
  • Previous by thread: NSStringDrawing
  • Next by thread: NSToolbarItem, textured background & Tiger
  • Index(es):
    • Date
    • Thread