• 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: Setting the Line Height/ Line Spacing in an NSTextView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the Line Height/ Line Spacing in an NSTextView.


  • Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • From: Graham Cox <email@hidden>
  • Date: Fri, 1 Jan 2010 11:16:04 +1100

On 01/01/2010, at 5:14 AM, Joshua Garnham wrote:

> So would this work?…

> NSMutablePargagraphStyle *paragraphStyle;
> [paragraphStyle setLineSpacing:spacing];

No - you haven't allocated/inited the paragraphStyle object, nor initialised the variable. Most probably this will crash. Also, there's no such class as NSMutablePargagraphStyle.

I'm guessing this is 'pseudocode', but it's really better not to do that but to write exactly what you mean. It saves a lot of potential misinterpretations.

--Graham


_______________________________________________

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

References: 
 >Setting the Line Height/ Line Spacing in an NSTextView. (From: Joshua Garnham <email@hidden>)
 >Re: Setting the Line Height/ Line Spacing in an NSTextView. (From: Ross Carter <email@hidden>)
 >Re: Setting the Line Height/ Line Spacing in an NSTextView. (From: Joshua Garnham <email@hidden>)
 >Re: Setting the Line Height/ Line Spacing in an NSTextView. (From: Fritz Anderson <email@hidden>)
 >Fw: Setting the Line Height/ Line Spacing in an NSTextView. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: Re: NSImage
  • Next by Date: Re: NSDocument, NSManagedObjectContext do Stuff in -dealloc, Cause Crash
  • Previous by thread: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Next by thread: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Index(es):
    • Date
    • Thread