Re: Vertical alignment images in an attributed string
Re: Vertical alignment images in an attributed string
- Subject: Re: Vertical alignment images in an attributed string
- From: James Bucanek <email@hidden>
- Date: Wed, 2 Aug 2006 15:02:32 -0700
James Bucanek wrote on Wednesday, August 2, 2006:
>When I create my attributed string, the icons (NSImages inserted as file
>attachments) get drawn on the baseline and are too high (the top two pixels
>get cut off). I tried adding a negative NSBaselineOffsetAttribute but it seems
>to be ignored. Note that a positive offset works as advertised, but I can't
>seem to get the NSImage to draw below the baseline.
I solved this by using NSBaselineOffsetAttribute to raise all of the text of on the line by 3 pixels above the baseline. Doesn't seem like the right way to do it, but it works.
--
James Bucanek
_______________________________________________
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