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