|
|
???
Man I hate hints like this that assume a level of knowledge that's just not there in the vast majority of us!!! ;-}
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.
Further explanation
When you follow the instructions, a new Text Edit is created in a (also newly created) 'Build' folder in the /Developer -> Examples -> Appkit -> TextEdit folder. If you use that newly built Text Edit, the margins will be as changed in the Document.m file. I changed the 72 values to 57 in order to get my preferred 20mm margins. If you use another language than English, you can copy the .lproj from the original Text Edit to the newly created one. (When you open the application package, inside Text Edit/Contents/Resources/) |
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.06 seconds |
|