How to use NSPrintHeaderAndFooter
How to use NSPrintHeaderAndFooter
- Subject: How to use NSPrintHeaderAndFooter
- From: email@hidden
- Date: Tue, 11 Jul 2006 08:35:48 +0200 (CEST)
- Importance: Normal
Hello all,
I have a Cocoa text editor that uses (a subclass of) NSTextView. I want
the headers and footers printed, so I overrode the designated initializer of
NSTextView as follows :
- (id)initWithFrame:(NSRect)frameRect textContainer:(NSTextContainer
*)aTextContainer
{
if ([super initWithFrame:frameRect textContainer:aTextContainer]) {
NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
[defaults setBool:YES forKey: NSPrintHeaderAndFooter ];
}
return self;
}
But this doesn't work ... What am I doing wrong ?
Ewan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden