Re: Custom attrs preserved in RTF files?
Re: Custom attrs preserved in RTF files?
- Subject: Re: Custom attrs preserved in RTF files?
- From: Douglas Davidson <email@hidden>
- Date: Tue, 19 Sep 2006 15:44:45 -0700
On Sep 19, 2006, at 3:35 PM, Mike R. Manzano wrote:
If I pass a custom attribute and value to NSMutableAttributedString's
-(void)addAttribute:(NSString *)name value:(id)value range:(NSRange)
aRange
and then write the string to an RTF file, can I expect the custom
attribute and value to be preserved in the file?
No, you cannot. What is written out to the RTF file is the text, the
standard character-level attributes from the attributed string (as
defined in AppKit/NSAttributedString.h by constants with names like
NS...AttributeName) and the standard document-level attributes from
the document attributes dictionary (as defined in AppKit/
NSAttributedString.h by constants with names like
NS...DocumentAttribute).
Douglas Davidson
_______________________________________________
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