Re: NSText/NSAttributedString alignLeft: and rtf
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