Re: Setting the Line Height/ Line Spacing in an NSTextView.
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
Graham Cox