Re: Newbie Question about Document/Window/Text Field
Re: Newbie Question about Document/Window/Text Field
- Subject: Re: Newbie Question about Document/Window/Text Field
- From: Deirdre Saoirse Moen <email@hidden>
- Date: Tue, 15 May 2001 20:35:38 -0700
At 4:07 AM +0100 5/16/01, mmalcolm crawford wrote:
You probably also want:
- (void)windowControllerDidLoadNib:(NSWindowController *) aController{
[super windowControllerDidLoadNib:aController];
[textView replaceCharactersInRange: NSMakeRange(0,0) withRTF:
[self model]];
}
to ensure the document is properly displayed when opened.
Well, it's not RTF, but it is working now. :)
(I had no interest in reading RTF stuff and I wasn't writing to a
TextView anyway, but that's the method I needed to override -- and
hadn't before Greg suggested that's where my problem was.)
--
_Deirdre Stash-o-Matic:
http://weirdre.com http://deirdre.net
Macintosh Developer (seeking work): Will work for Cocoa
"I love deadlines. I like the whooshing sound they make as they fly by."
- Douglas Adams