FROM : Matt Neuburg
DATE : Wed Jul 19 21:25:50 2006
On Wed, 19 Jul 2006 14:29:52 -0400, Michael Tsai <<email_removed>> said:
>On Jul 19, 2006, at 1:50 PM, <email_removed> wrote:
>
>> (gdb) po parsty (* just after that line has been executed *)
>> Alignment 2, LineSpacing 0, ParagraphSpacing 0,
>> ParagraphSpacingBefore 0,
>> HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0,
>> LineHeightMultiple 0, LineBreakMode 0, Tabs (288C, 576R),
>> DefaultTabInterval 0, Blocks (null), Lists (null),
>> BaseWritingDirection
>> -1, HyphenationFactor 0, TighteningFactor 0.05, HeaderLevel 0
>>
>> All I understand here is that the Alignement parameter has been
>> modified in parsty, exactly as I wanted.
>> What am I supposed to ``see right away" here ? Is there some
>> parameter
>> that should be nonzero ?
>
>I think the alignment of the page number is handled by the right-
>aligned tab stop, so changing the alignment of the paragraph won't
>make a difference
Right. But you're not the guy I was trying to teach! :) I was going on the
theory that it's better to teach someone to fish than hand them a fish.
By thinking about what Alignment 4 means (what is what I wanted to get the
OP to think about), one realizes (eventually) that the text position was not
caused by the paragraph being originally right-aligned (because it wasn't);
therefore changing the alignment won't affect it.
However, the beans now having been spilled, here's a possible version of the
desired fish:
- (NSAttributedString*) pageFooter {
NSAttributedString* s = [super pageFooter];
return [s attributedSubstringFromRange:NSMakeRange(1,[s length]-1)];
}
m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
DATE : Wed Jul 19 21:25:50 2006
On Wed, 19 Jul 2006 14:29:52 -0400, Michael Tsai <<email_removed>> said:
>On Jul 19, 2006, at 1:50 PM, <email_removed> wrote:
>
>> (gdb) po parsty (* just after that line has been executed *)
>> Alignment 2, LineSpacing 0, ParagraphSpacing 0,
>> ParagraphSpacingBefore 0,
>> HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0,
>> LineHeightMultiple 0, LineBreakMode 0, Tabs (288C, 576R),
>> DefaultTabInterval 0, Blocks (null), Lists (null),
>> BaseWritingDirection
>> -1, HyphenationFactor 0, TighteningFactor 0.05, HeaderLevel 0
>>
>> All I understand here is that the Alignement parameter has been
>> modified in parsty, exactly as I wanted.
>> What am I supposed to ``see right away" here ? Is there some
>> parameter
>> that should be nonzero ?
>
>I think the alignment of the page number is handled by the right-
>aligned tab stop, so changing the alignment of the paragraph won't
>make a difference
Right. But you're not the guy I was trying to teach! :) I was going on the
theory that it's better to teach someone to fish than hand them a fish.
By thinking about what Alignment 4 means (what is what I wanted to get the
OP to think about), one realizes (eventually) that the text position was not
caused by the paragraph being originally right-aligned (because it wasn't);
therefore changing the alignment won't affect it.
However, the beans now having been spilled, here's a possible version of the
desired fish:
- (NSAttributedString*) pageFooter {
NSAttributedString* s = [super pageFooter];
return [s attributedSubstringFromRange:NSMakeRange(1,[s length]-1)];
}
m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
| Related mails | Author | Date |
|---|---|---|
| delanoy | Jul 18, 19:54 | |
| Matt Neuburg | Jul 18, 21:13 | |
| delanoy | Jul 19, 11:14 | |
| delanoy | Jul 19, 19:50 | |
| Matt Neuburg | Jul 19, 20:19 | |
| Michael Tsai | Jul 19, 20:29 | |
| Matt Neuburg | Jul 19, 21:25 | |
| delanoy | Jul 20, 09:17 |






Cocoa mail archive

