• 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
NSAttributedString with embedded image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSAttributedString with embedded image
      • From: Rakka <email@hidden>
  • Prev by Date: Re: Custom Cell highlighting
  • Next by Date: direction for control-drag - connection application
  • Previous by thread: Re: NSTableColumn & binding value
  • Next by thread: Re: NSAttributedString with embedded image
  • Index(es):
    • Date
    • Thread