• 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
What defines a paragraph in NSText*?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What defines a paragraph in NSText*?


  • Subject: What defines a paragraph in NSText*?
  • From: Rob Nikander <email@hidden>
  • Date: Sat, 11 Dec 2010 16:10:48 -0500

Hi,

I first asked this question on stackoverflow, so I'll include the link:

http://stackoverflow.com/questions/4404286/how-is-a-paragraph-defined-in-an-nsattributedstring

Here is the copied text:

I see that there is an attribute name (NSParagraphStyleAttributeName)
for applying paragraph styles to text in Cocoa. Text is stored in an
NSAttributedString, but what defines a "paragraph" in that string --
is it the newline character \n? Other characters? If it's a \n, then
how do you create a new line without starting a new paragraph?  And
lastly, when you attach a ParagraphStyle to the string, do you have to
use the exact range of the whole paragraph, or can you put it on any
sub-range in the paragraph. If it can be a sub-range, how does the
system handle two or more ParagraphStyles on the same paragraph?

thanks,
Rob
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: What defines a paragraph in NSText*?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSUnarchiver / Data.archive Extract all Keys
  • Next by Date: LayoutManager Tutorials and Example Code
  • Previous by thread: Re: [iOS] How to add push animation to view controller without a navigation controller
  • Next by thread: Re: What defines a paragraph in NSText*?
  • Index(es):
    • Date
    • Thread