• 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: right justified table column with attributed string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: right justified table column with attributed string?


  • Subject: Re: right justified table column with attributed string?
  • From: John Mikros <email@hidden>
  • Date: Mon, 10 Apr 2006 17:38:43 -0700

duh :-)  It was right there in NSAttributedString.h

Of course, I was originally looking for NSJustificationAttributeName or something like that :-)

thanks everyone!
-john

On Apr 10, 2006, at 5:18 PM, Ondra Cada wrote:

John,

On 11.4.2006, at 1:34, John Mikros wrote:

I have a table column whose data is right justified, ie, I have clicked the -->| button in Interface for data alignment.
If I return an NSString* from tableView:objectValueForTableColumn:row:, then all is well -- the text is right justified.


However, when I return an NSAttributedString*, then it gets drawn left-justified.

Of course it is :) -- the attributed string has its own alignment which "wins" over the table column setting. The alignment is by default left.


Search the docs for NSParagraphStyleAttributeName for more.
---
Ondra Čada
OCSoftware:     email@hidden               http://www.ocs.cz
private         email@hidden             http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >right justified table column with attributed string? (From: John Mikros <email@hidden>)
 >Re: right justified table column with attributed string? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Cocoa Books
  • Next by Date: Re: Cocoa Books
  • Previous by thread: Re: right justified table column with attributed string?
  • Next by thread: MEETING: Chicago - CAWUG April 11th
  • Index(es):
    • Date
    • Thread