• 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: Custom Table View Cells and String Text Alignment and Breaking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Table View Cells and String Text Alignment and Breaking


  • Subject: Re: Custom Table View Cells and String Text Alignment and Breaking
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 6 Aug 2009 17:26:42 -0700

On Aug 6, 2009, at 17:08, Grant Erickson wrote:

However, with regard to the strings, particularly concerning the
right-alignment of the non-stacked string, nudging around the X points to
achieve the proper right-alignment seems like the wrong way to approach this
and that I should be specifying NSTextAlignment in some way when the string
is drawn.


In addition, paragraph style attributes (NSRightTextAlignment or
NSLineBreakByTruncatingMiddle) seem (perhaps unsurprisingly) to not apply to
drawAtPoint:withAttributes:.

So why wouldn't you use drawInRect:withAttributes: instead?


_______________________________________________

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: 
 >Custom Table View Cells and String Text Alignment and Breaking (From: Grant Erickson <email@hidden>)

  • Prev by Date: Re: Disabling Exposé in SystemUIMode
  • Next by Date: Re: Custom Table View Cells and String Text Alignment and Breaking
  • Previous by thread: Custom Table View Cells and String Text Alignment and Breaking
  • Next by thread: Re: Custom Table View Cells and String Text Alignment and Breaking
  • Index(es):
    • Date
    • Thread