Re: Best way to compare NSParagraphStyles?
Re: Best way to compare NSParagraphStyles?
- Subject: Re: Best way to compare NSParagraphStyles?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 4 Oct 2006 14:05:54 -0700
On Oct 4, 2006, at 1:56 PM, Keith Blount wrote:
So, my question is, what is the best way to compare
two NSParagraphStyles, which will work even after the
text has been saved as RTFD and opened again? At the
moment I am going through every paragraph style
setting I actually use and comparing them manually,
but I have to round certain values (because the head
indent can be off) and count NSNaturalTextAlignment as
NSLeftTextAlignment, all of which seems awkward and
could conceivably break.
One other possible solution to this, by the way, would be to
normalize a given paragraph style by attaching it to a small piece of
text, converting it to RTF and back in memory, and obtaining the
paragraph style of the result. You could then compare the resulting
normalized paragraph styles.
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