| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I would like my NSTextView to only use one font, Monaco 10-pt. In the
awakeFromNib method I have:
[[self textStorage] addAttribute:NSFontAttributeName value:[NSFont
fontWithName:@"Monaco" size:10.0] range:NSMakeRange(0, [[[self
textStorage] mutableString] length])];
But this does not work. My first thought was simply to set the font in
the nib itself, but it only works if the field also has text in it,
otherwise it defaults to Helvetica 12.
Is there something I'm missing?
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.