NSAttributedString with embedded image
NSAttributedString with embedded image
- Subject: NSAttributedString with embedded image
- From: Craig Hunter <email@hidden>
- Date: Sun, 27 Mar 2005 23:32:27 -0500
I am trying to add a menu item to an app's dock menu with an image and text.
I have it working well with text only. My understanding is that to add both
an image and text to a dock menu item, I need to use an NSAttributedString
that contains both the image and the text. Sounds easy enough, but I have
been unable to construct an NSAttributedString with an embedded image and
text.
Anybody have a code example of constructing an NSAttributedString with an
embedded image and some text? BTW, my image is included in the app's bundle
as a resource.
thanks,
Craig
--
Dr. Craig A. Hunter
NASA Langley Research Center
AAAC / Configuration Aerodynamics Branch
(757) 864-3020
email@hidden
_______________________________________________
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