Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jpd00964 From: jpd00964@uxa.cso.uiuc.edu Newsgroups: comp.sys.next Subject: Re: HELP! Yet more problems with making Message-ID: <246300042@uxa.cso.uiuc.edu> Date: 17 Aug 89 07:45:00 GMT References: <491@mit-amt.MEDIA.MIT.EDU> Lines: 24 Nf-ID: #R:mit-amt.MEDIA.MIT.EDU:491:uxa.cso.uiuc.edu:246300042:000:1149 Nf-From: uxa.cso.uiuc.edu!jpd00964 Aug 17 02:45:00 1989 /* Written 9:24 am Aug 16, 1989 by adam@mit-amt.MEDIA.MIT.EDU in uxa.cso.uiuc.edu:comp.sys.next */ /* ---------- "HELP! Yet more problems with making" ---------- */ > windowid = [Window newContent:myRect:style:type:mask:YES]; // line 574 > [windowid makeKeyAndOrderFront]; // line 575 > scrollid = [ScrollView newFrame:&myRect]; // line 576 > >Post-read notes: cc complains (at compile time) that it can't find the method >"newContent", the method on the first line of code. It also complains that it >can't find "newFrame", but it crashes before it gets to that point on a run. You better believe it can't find that method. myRect, style, type, and mask I am assuming are of the correct types. You need the words style, backing, buttonMask, and defer in there though. It knows you have 5 variables because you have 5 colons. You need all the text, not just the first one. This may seem silly, but it actually is better. It allows you to have - a:(int)number b:(int)number; - a:(int)number c:(int)number; and these would be two entirely different messages. Michael Rutman Softmed