• 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
Re: Transparent NSMutableAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent NSMutableAttributedString


  • Subject: Re: Transparent NSMutableAttributedString
  • From: "John C. Warner" <email@hidden>
  • Date: Thu, 17 Feb 2005 08:27:04 -0500


On 17 Feb, 2005, at 2:28 AM, Lorenzo wrote:

Hi,
in my transparent window, with a transparent NSTextView I can select a
string and assign to it a 50% alpha color. So the string looks like
half-transparent at that moment. Good.
Anyway, if I copy that string and paste it somewhere else in the same
NSTextView, the string becomes opaque again. And if I save and load the
string to/from a file, it looses the transparency again. So, my question is,
how to keep the transparency color of the text?

NSAttributedStirng uses RTF as transport for going through the pasteboard. I don't believe RTF has any support for transparency. You could try putting it on as PDF or a image, but then obviously you lose editability. Or you could make your own pasteboard type, but other applications won't understand it.


-John

_______________________________________________
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: Transparent NSMutableAttributedString
      • From: Lorenzo <email@hidden>
References: 
 >Transparent NSMutableAttributedString (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Full screen transparent window
  • Next by Date: Re: Creating NSViews with code.
  • Previous by thread: Transparent NSMutableAttributedString
  • Next by thread: Re: Transparent NSMutableAttributedString
  • Index(es):
    • Date
    • Thread