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

2010-01-02 Thread Joshua Garnham
Thanks that works now! From: Paul Sanders To: Joshua Garnham 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, that looks ok. I think pS is probably being returned

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

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

2010-01-02 Thread Joshua Garnham
ers To: Graham Cox ; Joshua Garnham Cc: Cocoa-Dev List 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 there, and I'm not going to write your code for you, but what I do goes something like

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 (Cocoa-dev

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

2010-01-02 Thread Paul Sanders
x" To: "Joshua Garnham" Cc: "Cocoa-Dev List" 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://develo

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 (Cocoa-dev@lists.apple.

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

2010-01-01 Thread Joshua Garnham
How would I use that? From: Paul Sanders To: Joshua Garnham ; Graham Cox Cc: cocoa-dev@lists.apple.com Sent: Fri, 1 January, 2010 15:09:47 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. Check out NSTextView's setTypingAttri

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

2010-01-01 Thread Paul Sanders
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 reset

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

2010-01-01 Thread Joshua Garnham
a-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 doing this … > >

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 allo

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

2010-01-01 Thread Joshua Garnham
oshua Garnham Cc: Cocoa-Dev List 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 *paragraphStyle; > [paragraphStyle setLineSpacing:spaci

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

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

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

2009-12-31 Thread Joshua Garnham
]; [textView setDefaultParagraphStyle:paragraphStyle]; - Josh From: Fritz Anderson To: Joshua Garnham Cc: cocoa-dev List Sent: Wed, 30 December, 2009 17:24:21 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView. On 30 Dec 2009, at 11:01 AM

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-30 Thread Joshua Garnham
But the methodssetLineSpacing: and others are NSMutableParagraphStyle methods only. From: Ross Carter To: Joshua Garnham Cc: cocoa-dev@lists.apple.com Sent: Wed, 30 December, 2009 16:12:18 Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView

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 … > - (void)setDefaultParagraphSty

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 … > - (void)setDefaultParagraphS

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 sp

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 wit

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 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. ___ Coco

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 comments