Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!rosie!elvis From: sstreep@elvis (Sam Streeper) Newsgroups: comp.sys.next Subject: Re: Drawing String in a View (Reply Needed ASAP) Message-ID: <882@rosie.NeXT.COM> Date: 3 Jun 91 17:56:59 GMT References: <1991Jun1.212429.11027@casbah.acns.nwu.edu> Sender: news@NeXT.COM Lines: 31 Nntp-Posting-Host: elvis.next.com In article <1991Jun1.212429.11027@casbah.acns.nwu.edu> garyc@robbie.acns.nwu.edu writes: > I need to display some plain strings in my View area; but > I hate to go thru and use the Text Object. EPS suggested using a TextField object; That's probably the best way to do what you want to do. Glenn suggested postscript code; that works too. Here's yet another way so you can take your pick... You might have a couple of View methods that look like this: - initFrame:(const NXRect *)frameRect { [super initFrame:frameRect]; readOut = [[Cell alloc] initTextCell:"Hola!"]; return self; } - someOtherViewMethod { NXRect cellRect = {0, 0, 100, 20 }; [readOut drawInside:&cellRect inView:self]; return self; } This example displays text, but the text won't be editable as it would be in a TextField object. This code was borrowed from the Plotter example which probably appears somewhere on the purdue archive. -- Opinions are not those of my employer. They're not even mine. They're probably wrong besides. How did they get in here, anyway?