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

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>)

  • Prev by Date: Re: Knowing when NSSplitView's divider relocates
  • Next by Date: Re: use of c select() style events with the objc run loop
  • Previous by thread: lineSpacing
  • Next by thread: Transparency in the application icon?
  • Index(es):
    • Date
    • Thread