I am subclassing NSTextView to set it's default font:
PTNfoEditField.h
@interface PTNfoEditField : NSTextView {
}
@end
PTNfoEditField.m
@implementation PTNfoEditField
-(id)init {
if(self = [super init]) {
[[self textStorage] setFont:[NSFont fontWithName:@"Courier" size:10]];
}
return self;
}
@end
However, this does not work and I don't know how to do it in a different way. Can anyone help me? Thanks.