• 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
NSButtonCell title alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButtonCell title alignment


  • Subject: NSButtonCell title alignment
  • From: Greg Hamilton <email@hidden>
  • Date: Thu, 29 May 2003 12:52:27 +1000

Hello

I'm creating an NSMatrix of NSButtonCells following the example of the calendar matrix in the O'Reilly book.
I want to highlight specific NSButtonCells by changing the colour of the button title.
To do this I use setAttributedTitle passing in the title and attributes, such as font, size and colour.
Unfortunately the cell text alignment seems to be ignored for the cells with attributed titles, the attributed titles are left aligned while all other cells are centre aligned.
Has anybody else seen this problem ?

Greg Hamilton
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Compositing several NSImages into one
  • Next by Date: port number for NSSocketPort
  • Previous by thread: Re: Compositing several NSImages into one
  • Next by thread: port number for NSSocketPort
  • Index(es):
    • Date
    • Thread