• 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: Vertically centering text in an NSBrowserCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vertically centering text in an NSBrowserCell


  • Subject: Re: Vertically centering text in an NSBrowserCell
  • From: j o a r <email@hidden>
  • Date: Sat, 27 May 2006 23:14:21 +0200


On 27 maj 2006, at 23.08, Graham wrote:

My NSBrowser has custom cells, that have both a String and an Image.
The default drawing puts the text to the right of the image, and aligns it at the top of the image.
Without overriding the cell's draw method(s), is it possible to change this alignment?

If you set an NSAttributedString, instead of an NSString, you might be able to fix it by using the NSBaselineOffsetAttributeName key.


That said, in all cases where I've tangled with this problem, I think I've ended up with a subclass...

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Vertically centering text in an NSBrowserCell (From: Graham <email@hidden>)

  • Prev by Date: Vertically centering text in an NSBrowserCell
  • Next by Date: Multiple Column Sort
  • Previous by thread: Vertically centering text in an NSBrowserCell
  • Next by thread: Multiple Column Sort
  • Index(es):
    • Date
    • Thread