• 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: How to draw NSString with centered alignment?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 00:35:27 -0500

On Jan 23, 2007, at 12:30 AM, Joe Goh wrote:
How do I get the width of an attributed string without drawing it first?

... forgot to mention that it's also worth noting if you already know the origin and can easily get the size, you can use the - drawInRect:... method and you get the centering automagically.



-- 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


References: 
 >How to draw NSString with centered alignment? (From: "Joe Goh" <email@hidden>)
 >Re: How to draw NSString with centered alignment? (From: "I. Savant" <email@hidden>)
 >Re: How to draw NSString with centered alignment? (From: "Joe Goh" <email@hidden>)

  • Prev by Date: Re: How to draw NSString with centered alignment?
  • Next by Date: Re: How to draw NSString with centered alignment?
  • Previous by thread: Re: How to draw NSString with centered alignment?
  • Next by thread: Re: How to draw NSString with centered alignment?
  • Index(es):
    • Date
    • Thread