Vertical alignment images in an attributed string
Vertical alignment images in an attributed string
- Subject: Vertical alignment images in an attributed string
- From: James Bucanek <email@hidden>
- Date: Wed, 2 Aug 2006 11:36:39 -0700
Greetings,
I've created a reasonable facsimile of the recent items menu using attributed strings. However, the "real" menu managed by NSDocumentController draws the icon images vertically centered with the names of the documents in each menu item cell.
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.
Any ideas?
_______________________________________________
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