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
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
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
...@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
@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
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
@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
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
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
@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
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
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
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
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
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
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 …
-
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 …
-
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
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
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
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
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.
22 matches
Mail list logo