• 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: NSText/NSAttributedString alignLeft: and rtf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSText/NSAttributedString alignLeft: and rtf


  • Subject: Re: NSText/NSAttributedString alignLeft: and rtf
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 30 May 2006 15:10:31 -0700


On May 30, 2006, at 1:47 PM, Tony Rennier wrote:

I have a problem that I can't seem to futz my way through. I have been working with a code base that dates back to the NeXT days trying to correct a problem that was introduced with the release a Tiger. It seems that the following commands all produce NSData objects (streams) with any and all AlignLeft tags removed.

NSData *rtfData = [[myNSTextView RTFFromRange:NSMakeRange(0, [[myNSTextView string] length])] copy];


I'm not sure what you mean by "AlignLeft tags", but it sounds like you're talking about text alignment. The formats you mention all have different mechanisms for expressing alignment--for example, in the case of RTF, left alignment is expressed as "\ql". However, left alignment is the default for all of them, and so it is rarely explicitly expressed. Left alignment handling in RTF hasn't changed in several releases. If you can supply details--specific code, input, and output--that have changed in Tiger, then we might be able to help you.


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: 
 >NSText/NSAttributedString alignLeft: and rtf (From: Tony Rennier <email@hidden>)

  • Prev by Date: libsqlite3 and cross-development
  • Next by Date: Re: Drawing an NSAttributedString into an NSRect
  • Previous by thread: NSText/NSAttributedString alignLeft: and rtf
  • Next by thread: Drawing an NSAttributedString into an NSRect
  • Index(es):
    • Date
    • Thread