• 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: NSParagraphStyle questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSParagraphStyle questions


  • Subject: Re: NSParagraphStyle questions
  • From: Gideon King <email@hidden>
  • Date: Fri, 2 Jan 2004 09:55:34 +1000

Thanks for the suggestion - I have found that both 000D and 2028 cause
a break, but both of them have the paragraphSpacingBefore gap drawn
before the paragraph. I would consider this a bug, as the paragraph end
marker 8233 should mark the end of a paragraph, and the
paragraphSpacingBefore should not be applied unless there is an actual
paragraph break. Unless I hear to the contrary on this, I think I'll
post a bug report on it (doesn't help me with my immediate problem of
creating a line break without the paragraph spacing though). Perhaps I
need to write my own paragraphSpacingBefore code (as per my second
question) to get what I am looking for in the short term...

Gideon

On Friday, January 2, 2004, at 03:19 AM, Kaelin Colclasure wrote:

> On Jan 1, 2004, at 8:49 AM, Gideon King wrote:
>
>> I am using NSParagraphStyle to set up paragraph formatting, an need
>> to insert a newline into a paragraph without it becoming a new
>> paragraph - if I insert a \n or 0x000A, there is no effect. If I
>> insert \r or 0x000D it creates a new paragraph with the spacing
>> before and after the paragraph etc. Does anyone have a solution that
>> will allow me to insert a new line without it becoming a new
>> paragraph?
>
> You want the Unicode character used to represent a "soft return" --
> I'm not sure, but I think the standard is:
>
>> 2028
>>
>> LINE SEPARATOR
>>
>> The text after the Line Separator starts at the beginning of the
>> line. No paragraph formatting is applied.
>>
>> This is similar to HTML <BR>
>
> The above quote is from: http://www.unicode.org/unicode/reports/tr14/
>
>> Also, I am using the new paragraphSpacingBefore feature, which does
>> exactly what I need it to, but I need to ship my app on 10.2 - can
>> someone point me in the right direction to implementing a clone of
>> paragraphSpacingBefore? I'm fairly familiar with the different parts
>> of the text system, but am a bit unsure where to start with this one.
>
> Sorry, can't help you with that one. :-)
>
> -- Kaelin
>
>>
>> TIA
>>
>> Gideon
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSParagraphStyle questions (From: Kaelin Colclasure <email@hidden>)

  • Prev by Date: Re: Encryption
  • Next by Date: Re: KVO/KVC compliance, signature for -validate<Key>: error:
  • Previous by thread: Re: NSParagraphStyle questions
  • Next by thread: [OT] Happy new year
  • Index(es):
    • Date
    • Thread