[comp.sys.next] Window Troubles

adam@mit-amt.MEDIA.MIT.EDU (Adam Glass) (08/23/89)

Thanks to all those who posted/mailed me solutions.

Next problem: This code *should* bring up a window, and doesn't. Why?

The code:
/* start of code */
      windowid = [Window newContent:&myRect
                              style:NX_SIZEBARSTYLE
                            backing:NX_BUFFERED
                         buttonMask:NX_RESIZEBUTTONMASK
                              defer:NO];
      [windowid setTitle:"foo"];
      [windowid display];
      [windowid orderFront:nil];
      [windowid makeKeyWindow];
/* end of code */

Where windowid is defined as an id, and myRect is set properly.

It doesn't complain at all at compile time, and doesn't crash when executed.
But it doesn't bring up the window. Again, why?

Adam

--
"Offer me anything I ask for..."      (mail address in message header)
"Anything you want."                                                   "Moof!"
"I want my father back, you son of a bitch." - The Princess Bride