FW: NSTextView changes font

2008-03-10 Thread Mark Teagarden
Subject: Re: NSTextView changes font Gah, that sucks. Could you reply to the list and say this didn't do it? I already deleted the original message... :( Mark Teagarden wrote: > > Yeah, I saw that too. I tried it - no joy. I'll keep studying. > > > On 3/10/

Re: NSTextView changes font

2008-03-07 Thread Ben Lachman
This seems to be some weirdness with IB. Just set the font programatically instead and you're fine. The sample project I made has a controller with this awakeFromNib in it: - (void)awakeFromNib { [textview setFont:[NSFont systemFontOfSize:36.0]]; [textview setRichText:NO];

Re: NSTextView changes font

2008-03-07 Thread John Stiles
I tried implementing the delegate method –textView:shouldChangeTypingAttributes:toAttributes:, but it was never called. What do you mean by "whenever needed"? If an NSTextField supported scrolling, that would have been ideal… I just want my font to stick. I guess I assumed this would be simple.

Re: NSTextView changes font

2008-03-07 Thread Ben Lachman
I'd use setTypingAttributes: in the text view's delegate whenever needed. In my code at least this often goes along with editing the default paragraph style as well via setDefaultParagraphStyle:. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.

NSTextView changes font

2008-03-07 Thread John Stiles
I have an NSTextView in my app. The user can type whatever they want into it. In Interface Builder, I've set a nice large font. I've disabled rich text, font changing, etc., so I was hoping that the font would always stay the same. However, if the user deletes the entire contents of the text