• 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: Keith Blount <email@hidden>
  • Date: Thu, 5 Oct 2006 10:02:13 -0700 (PDT)

Thanks for your reply - this sounds like a very good
solution, which had not occurred to me. I will take
this route.

Thanks for all your help (as ever - the amount of help
you have given me with the text parts of my app
through this list is incredible - your name was in the
credits a year ago :) ),
Keith

--- Douglas Davidson <email@hidden> wrote:

>
> 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 You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
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: 
 >Re: Best way to compare NSParagraphStyles? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Core Animation Sample Code
  • Next by Date: Re: Disabling Sorting of columns in Tableview
  • Previous by thread: Re: Best way to compare NSParagraphStyles?
  • Next by thread: cocoa string tokenizer
  • Index(es):
    • Date
    • Thread