• 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: Best way to compare NSParagraphStyles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Best way to compare NSParagraphStyles?
      • From: Keith Blount <email@hidden>
References: 
 >Best way to compare NSParagraphStyles? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: How do I know when my Core Data app is up and running?
  • Next by Date: cocoa string tokenizer
  • Previous by thread: Re: Best way to compare NSParagraphStyles?
  • Next by thread: Re: Best way to compare NSParagraphStyles?
  • Index(es):
    • Date
    • Thread