• 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: what is [textStorage paragraphs]???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what is [textStorage paragraphs]???


  • Subject: Re: what is [textStorage paragraphs]???
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 24 Jan 2006 09:00:39 -0800


On Jan 23, 2006, at 10:40 PM, Nik Youdale wrote:

Is -paragraphs really an inefficient method? What I need in my app is an NSArray of strings representing each paragraph. Is it more efficient to use -paragraphs, or to get the range of each paragraph, and then a -subStringFromRange??

I have not measured, but I would expect that -paragraphs would be less efficient, because it creates an attributed string for each paragraph rather than a plain string; you would be throwing away the attributed strings after getting their strings.


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: 
 >what is [textStorage paragraphs]??? (From: Nik Youdale <email@hidden>)
 >Re: what is [textStorage paragraphs]??? (From: Douglas Davidson <email@hidden>)
 >Re: what is [textStorage paragraphs]??? (From: Nik Youdale <email@hidden>)

  • Prev by Date: Re: NSAttributedString & alert panels?
  • Next by Date: Re: NSAttributedString & alert panels?
  • Previous by thread: Re: what is [textStorage paragraphs]???
  • Next by thread: cocoa interact with finder
  • Index(es):
    • Date
    • Thread