• 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: Unable to right align text when drawing via [NSAttributedString drawAt:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
      • From: Kyle Sluder <email@hidden>
References: 
 >Unable to right align text when drawing via [NSAttributedString drawAt:] (From: Neil Clayton <email@hidden>)
 >Re: Unable to right align text when drawing via [NSAttributedString drawAt:] (From: Kevin Wojniak <email@hidden>)
 >Re: Unable to right align text when drawing via [NSAttributedString drawAt:] (From: Kevin Wojniak <email@hidden>)

  • Prev by Date: NSNumberFormatter dropping trailing zeros?
  • Next by Date: Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
  • Previous by thread: Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
  • Next by thread: Re: Unable to right align text when drawing via [NSAttributedString drawAt:]
  • Index(es):
    • Date
    • Thread