[comp.sys.next] [Dave Combs <combs@sumex-aim.stanford.edu> : Re: HELP! Yet more

combs@sumex-aim.stanford.edu (Dave Combs) (08/16/89)

Gang,
I tried mailing directly to Adam Glass at MIT, but the mail didn't go
through.  Given possible relevance to others, I'm reposting here.

Dave

                ---------------

Date: Wed, 16 Aug 1989 8:34:16 PDT
From: Dave Combs <combs@sumex-aim.stanford.edu>
To: adam@mit-amt.media.mit.edu (Adam Glass)
Subject: Re: HELP! Yet more problems with making new windows... 
In-Reply-To: Your message of 16 Aug 89 14:24:45 GMT 
Message-ID: <CMM.0.88.619284856.combs@sumex-aim.stanford.edu>

Adam,
Concerning the newContent::::: call, the compiler error is correct.
Since you are not supplying values to the various arguments to the call
(even if NULL), it assumes that the tokens "style", "type" and "mask"
are actual values, instead of parameter names.  Also, is "myRect" a pointer
to an NXRect, or an NXRect itself?  Final note: the argument name is
"buttonMask", not "mask."

The call probably should be:
  [Window newContent:&myRect 
           style:(some_integer_style)
         backing:(some_integer_buffering_type)
      buttonMask:(some_integer_buttonMask)
           defer:(some_BOOL_flag)]

(no parentheses are needed.)

All of this is documented in the 0.9 reference manual for the Window class.

Cheers,
Dave

combs@sumex-aim.stanford.edu (Dave Combs) (08/16/89)

Gang,
I tried mailing directly to Adam Glass at MIT, but the mail didn't go
through.  Given possible relevance to others, I'm reposting here.

Dave

                ---------------

Date: Wed, 16 Aug 1989 8:34:16 PDT
Adam,
Concerning the newContent::::: call, the compiler error is correct.
Since you are not supplying values to the various arguments to the call
(even if NULL), it assumes that the tokens "style", "type" and "mask"
are actual values, instead of argument names.  Also, is "myRect" a pointer
to an NXRect, or an NXRect itself?  Final note: the argument name is
"buttonMask", not "mask."

The call probably should be:
  [Window newContent:&myRect 
           style:(some_integer_style)
         backing:(some_integer_buffering_type)
      buttonMask:(some_integer_buttonMask)
           defer:(some_BOOL_flag)]

(no parentheses are needed.)

All of this is documented in the 0.9 reference manual for the Window class.

Cheers,
Dave