|
|
More Details
I'm sorry if my original post wasn't clear. Although there are 1,800+ lines of code in Document.m, there are only 6 occurrences of "72" - and the two having to do with tabs aren't relevant. The lines of interest start at line 487:
- (NSPrintInfo *)printInfo {
if (printInfo == nil) {
[self setPrintInfo:[NSPrintInfo sharedPrintInfo]];
[printInfo setHorizontalPagination:NSFitPagination];
[printInfo setHorizontallyCentered:NO];
[printInfo setVerticallyCentered:NO];
[printInfo setLeftMargin:72.0];
[printInfo setRightMargin:72.0];
[printInfo setTopMargin:72.0];
[printInfo setBottomMargin:72.0];
}
return printInfo;
}
Change those 72 (pixel) values to whatever you want and rebuild. By the way, I've discovered that once a document is saved with modified margins, even the official version of TextEdit will open it with those same margins, so you needn't always use the modified version - only when you want to create new templates.
More Details
Thanks for this tip. I know nothing about Xcode, though I have it (1.5) installed. I'm running 10.3.9. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|