Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!news From: scott@sage.uchicago.edu (Scott Deerwester) Newsgroups: comp.sys.next Subject: CustomView and PostScript Summary: My CustomView, she just sit there and no do nothing. Message-ID: <1990Sep14.210630.2852@midway.uchicago.edu> Date: 14 Sep 90 21:06:30 GMT Sender: news@midway.uchicago.edu (News Administrator) Reply-To: scott@sage.uchicago.edu (Scott Deerwester) Organization: TIRA / UofC Lines: 35 I'm trying to write a very simple little application that has a custom view in it that displays some PostScript. I've threaded the thing together with the IB, and the drawSelf method for the view is getting executed, but nothing happens in the window. Here's some of the code for the CustomView: -drawWindow:sender { [self display]; return (self); } -drawSelf:(NXRect *)r:(int)count { putchar ('\007'); fflush (stdout); PSsetgray (11.0 / 12.0); PSrectfill (bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height); ... return (self); } I hookup up a menu item to the drawWindow method, and every time I push the button, I hear the beep (putchar ('\007')) but nothing changes in the window. Am I missing something somewhere? -- Scott Deerwester | Internet: scott@tira.uchicago.edu | ~{P;N,5B~} Center for Information and | Phone: 312-702-6948 | Language Studies | 1100 E. 57th, CILS | University of Chicago | Chicago, IL 60637 |