Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!Teknowledge.COM!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: window object and awake method Keywords: window awake Message-ID: <12934@polya.Stanford.EDU> Date: 6 Dec 89 01:53:37 GMT References: <128@kgw2.UUCP> Organization: . Lines: 15 In article <128@kgw2.UUCP> dennisg@kgw2.UUCP (Dennis Glatting) writes: >i've got a problem. >i've created a subclass of a window which i built with IB. >my awake method in this subclass never gets called nor does >its finishUnarchiving method. what's wrong? IB doesn't store windows in the .nib file; instead it stores WindowTemplates. WindowTemplates are read in and sent awake messages; Windows are still created with the good old newContent:style:backing:buttonMask:defer: method. The best is to have a common initialization routine that is called by both your new methods and the read/awake pair. This way the initailization will get done properly no matter how the object is created. Ali