Re: Vertically centering text in an NSBrowserCell
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