Re: NSMutableParagraphStyle -paragraphSpacingBefore
Re: NSMutableParagraphStyle -paragraphSpacingBefore
- Subject: Re: NSMutableParagraphStyle -paragraphSpacingBefore
- From: Jonathan Mitchell <email@hidden>
- Date: Tue, 22 Aug 2017 18:23:00 +0100
> On 22 Aug 2017, at 18:17, Quincey Morris
> <email@hidden> wrote:
>
> On Aug 22, 2017, at 10:02 , Jonathan Mitchell <email@hidden> wrote:
>>
>> I don’t seem to be having much luck getting NSMutableParagraphStyle
>> -paragraphSpacingBefore to render.
>
> To render where? I have never found a way of getting it to be honored at the
> *top* of a text container, only after a non-empty, non-trivial paragraph of
> text.
Yes. That might well be the behaviour.
In this case I was trying to adjust the before spacing of the second paragraph.
I hadn’t defined an explicit paragraph style for the first paragraph (which I
presumed would use the default para style).
Once I set the 1st para to explicitly use [NSParagraphStyle
defaultParagraphStyle] it rendered ok.
Thanks
J
_______________________________________________
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