• 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: Custom attrs preserved in RTF files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Custom attrs preserved in RTF files? (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: Re: Displaying HTML in an NSTextField
  • Next by Date: Re: Displaying HTML in an NSTextField
  • Previous by thread: Custom attrs preserved in RTF files?
  • Next by thread: RE: How is an Cocoa application launched on top of all other windows that may be open ?
  • Index(es):
    • Date
    • Thread