Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!mit-eddie!mit-amt!adam
From: adam@mit-amt.MEDIA.MIT.EDU (Adam Glass)
Newsgroups: comp.sys.next
Subject: HELP! Yet more problems with making new windows...
Keywords: frustrating,window,code,objective,c,...
Message-ID: <491@mit-amt.MEDIA.MIT.EDU>
Date: 16 Aug 89 14:24:45 GMT
Organization: MIT Media Lab, Cambridge, MA
Lines: 34

Sigh... just when I thought it was all over, and I had finally gotten these
darn windows working, I turn out to be wrong. Groan...

This is basically what I've got:

Pre-read notes: variables windowid and scrollid are defined as 'id'. Window.h
and lots of other nice things are #included -- I don't think that's the
problem. "Without further ado", here's the code:

      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.
Sigh...

This is what cc says when I make the application:

ButtonFnctns.m:574: warning: cannot find factory method.
ButtonFnctns.m:574: warning: return type for `newContent:::::' defaults to id.

But if it can't find the method, how does it know that it takes 5 arguments?
And aren't I assigning it to a variable of type id (windowid) ??

What am I doing wrong?

Adam

--
"Offer me anything I ask for..."
"Anything you want."
"I want my father back, you son of a bitch." - The Princess Bride