Re: Transparent NSMutableAttributedString
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