RE: lineSpacing
RE: lineSpacing
- Subject: RE: lineSpacing
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 10 May 2004 14:16:35 -0400
Written in Mail, so use at your own risk.
NSMutableParagraphStyle *doubleSpacing = [[[NSMutableParagraphStyle alloc]
init] autorelease];
[doubleSpacing setLineSpacing:24.0];
NSDictionary *attributes = [NSDictionary dictionaryWithObject:doubleSpacing
forKey:NSParagraphStyleAttributeName];
NSTextStorage *storage = [yourTextView textStorage];
NSRange range = NSMakeRange(0,[storage length]);
[storage addAttributes:attributes range:range];
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Matt Ball
>
Sent: Sunday, May 09, 2004 9:08 PM
>
To: Cocoa Dev
>
Subject: lineSpacing
>
>
>
I am trying to change the line spacing of a NSTextView. I found
>
NSParagraphStyle's setLineSpacing method, but I can't seem to get it to
>
work. Any help would be appreciated.
>
>
-- Matt Ball
>
_______________________________________________
>
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: | |
| >lineSpacing (From: Matt Ball <email@hidden>) |