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

2010-01-02 Thread Graham Cox
On 02/01/2010, at 6:57 PM, Joshua Garnham wrote: How would I use that? RTFM: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextArchitecture/TextArchitecture.pdf --Graham ___ Cocoa-dev mailing list

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

2010-01-02 Thread Paul Sanders
joshua.garn...@yahoo.co.uk Cc: Cocoa-Dev List cocoa-dev@lists.apple.com Sent: Saturday, January 02, 2010 10:13 AM Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. On 02/01/2010, at 6:57 PM, Joshua Garnham wrote: How would I use that? RTFM: http://developer.apple.com/mac/library

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

2010-01-02 Thread Andy Lee
On Jan 2, 2010, at 6:04 AM, Paul Sanders wrote: I think it's Hillegass who recommends getting plenty of sleep. Ten hours! I keep meaning to try that suggestion, I think there must be something to it. --Andy ___ Cocoa-dev mailing list

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

2010-01-02 Thread Joshua Garnham
...@alpinesoft.co.uk To: Graham Cox graham@bigpond.com; Joshua Garnham joshua.garn...@yahoo..co.uk Cc: Cocoa-Dev List cocoa-dev@lists.apple.com Sent: Sat, 2 January, 2010 11:04:52 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. Well, I have to say Graham has a point

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

2010-01-02 Thread Paul Sanders
@lists.apple.com Sent: Saturday, January 02, 2010 2:52 PM Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. Thanks for the Guide/Walkthrough, Here's what I have come up with from that: NSDictionary *tA = [textView typingAttributes]; NSMutableDictionary *tAM = [tA

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

2010-01-02 Thread Joshua Garnham
Thanks that works now! From: Paul Sanders p.sand...@alpinesoft.co.uk To: Joshua Garnham joshua.garn...@yahoo.co.uk Cc: cocoa-dev@lists.apple.com Sent: Sat, 2 January, 2010 15:03:11 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.  Yep

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

2010-01-01 Thread Joshua Garnham
@bigpond.com To: Joshua Garnham joshua.garn...@yahoo.co.uk Cc: Cocoa-Dev List cocoa-dev@lists.apple.com Sent: Fri, 1 January, 2010 0:16:04 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. On 01/01/2010, at 5:14 AM, Joshua Garnham wrote: So would this work?… NSMutablePargagraphStyle

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

2010-01-01 Thread Graham Cox
On 01/01/2010, at 7:10 PM, Joshua Garnham wrote: That was a spelling mistake, it was meant to say NSMutableParagraphStyle. I've tried doing this … CGFloat spacing = 5.0f; NSMutableParagraphStyle *paragraphStyle; [paragraphStyle init]; Well, this is just not how you allocate

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

2010-01-01 Thread Joshua Garnham
joshua.garn...@yahoo.co.uk Cc: cocoa-dev@lists.apple.com Sent: Fri, 1 January, 2010 9:16:36 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. On 01/01/2010, at 7:10 PM, Joshua Garnham wrote: That was a spelling mistake, it was meant to say NSMutableParagraphStyle. I've tried

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

2010-01-01 Thread Paul Sanders
@lists.apple.com Sent: Friday, January 01, 2010 12:35 PM Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. Oh, I see. That works partly. The text that is already in the NSTextView at launch has the new Line Height but as soon as you start to type the line your typing on resets it's line

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

2010-01-01 Thread Joshua Garnham
Cc: cocoa-dev@lists.apple.com Sent: Friday, January 01, 2010 12:35 PM Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. Oh, I see. That works partly. The text that is already in the NSTextView at launch has the new Line Height but as soon as you start to type the line your

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

2009-12-31 Thread Joshua Garnham
Height/ Line Spacing in an NSTextView. On 30 Dec 2009, at 11:01 AM, Joshua Garnham wrote: But the methodssetLineSpacing: and others are NSMutableParagraphStyle methods only. That's the point. You may _want_ to change the paragraph style's properties, but you can't. Casting the parameter

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

2009-12-31 Thread Andy Lee
On Dec 31, 2009, at 1:14 PM, Joshua Garnham wrote: So would this work?… CGFloat spacing = 5.0f; NSMutablePargagraphStyle *paragraphStyle; [paragraphStyle setLineSpacing:spacing]; [paragraphStyle setMinimumLineHeight:spacing]; [paragraphStyle setMaximumLineHeight:spacing]; [textView

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

2009-12-31 Thread Graham Cox
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

Setting the Line Height/ Line Spacing in an NSTextView.

2009-12-30 Thread Joshua Garnham
How would I set the Line Height/ Line Spacinh in an NSTextView? e.g How tall each line is or how much space is between each line. Here's what I've tried (but doesn't work), it is in a NSTextView subclass … - (void)setDefaultParagraphStyle:(NSMutableParagraphStyle *)paragraphStyle { CGFloat

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

2009-12-30 Thread Ross Carter
On Dec 30, 2009, at 10:43 AM, Joshua Garnham wrote: How would I set the Line Height/ Line Spacinh in an NSTextView? e.g How tall each line is or how much space is between each line. Here's what I've tried (but doesn't work), it is in a NSTextView subclass … -

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

2009-12-30 Thread Fritz Anderson
On 30 Dec 2009, at 9:43 AM, Joshua Garnham wrote: How would I set the Line Height/ Line Spacinh in an NSTextView? e.g How tall each line is or how much space is between each line. Here's what I've tried (but doesn't work), it is in a NSTextView subclass … -

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

2009-12-30 Thread Joshua Garnham
the Line Height/ Line Spacing in an NSTextView. On Dec 30, 2009, at 10:43 AM, Joshua Garnham wrote: How would I set the Line Height/ Line Spacinh in an NSTextView? e.g How tall each line is or how much space is between each line. Here's what I've tried (but doesn't work), it is in a NSTextView

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

2009-12-30 Thread Fritz Anderson
On 30 Dec 2009, at 11:01 AM, Joshua Garnham wrote: But the methodssetLineSpacing: and others are NSMutableParagraphStyle methods only. That's the point. You may _want_ to change the paragraph style's properties, but you can't. Casting the parameter doesn't turn an immutable object into a

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

2009-12-25 Thread Graham Cox
On 25/12/2009, at 5:25 AM, Joshua Garnham wrote: How would I set the Line Height/ Line Spacing in an NSTextView? e.g How tall each line is or how much space is between each line. These are all properties of a NSParagraphStyle, which is itself a property applied to a range of characters

Setting the Line Height/ Line Spacing in an NSTextView.

2009-12-24 Thread Joshua Garnham
How would I set the Line Height/ Line Spacing in an NSTextView? e.g How tall each line is or how much space is between each line. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

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

2009-12-24 Thread Douglas Davidson
Use a paragraph style. Douglas Davidson On Dec 24, 2009, at 10:25 AM, Joshua Garnham joshua.garn...@yahoo.co.uk wrote: How would I set the Line Height/ Line Spacing in an NSTextView? e.g How tall each line is or how much space is between each line. Thanks.