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

right justified table column with attributed string?


  • Subject: right justified table column with attributed string?
  • From: John Mikros <email@hidden>
  • Date: Mon, 10 Apr 2006 16:34:51 -0700

Hello all,

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.

I've tried adding code to explicitly set the data cell to to be right justified, but that had no effect: ([[tableColumn dataCellForRow:row] setAlignment:NSRightTextAlignment];)

Also, there doesn't seem to be an attribute for "right-justified" that I could apply to the string, or at least I haven't found one.
Am I missing something? Is this a bug?


thanks for any info
-john




_______________________________________________ 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
  • Follow-Ups:
    • Re: right justified table column with attributed string?
      • From: Ondra Cada <email@hidden>
    • Re: right justified table column with attributed string?
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Re: Cocoa Books
  • Next by Date: Re: Cocoa Books
  • Previous by thread: Re: Cocoa Books
  • Next by thread: Re: right justified table column with attributed string?
  • Index(es):
    • Date
    • Thread