Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!dtgcube!ed From: ed@DTG.COM (Edward Jung) Newsgroups: comp.sys.next Subject: Re: window object and awake method Keywords: window awake Message-ID: <1989Dec8.221815.4021@uunet!dtgcube> Date: 8 Dec 89 22:18:15 GMT References: <128@kgw2.UUCP> <12934@polya.Stanford.EDU> <306@kgw2.UUCP> Sender: ed@uunet!dtgcube (Edward Jung) Reply-To: ed@DTG.COM (Edward Jung) Organization: The Deep Thought Group, L.P. Lines: 33 In-Reply-To: dennisg@kgw2.UUCP (Dennis Glatting) In article <306@kgw2.UUCP>, dennisg@kgw2 (Dennis Glatting) writes: > >so when a .nib file is loaded the file's contents aree a template. does >this imply that, since i currently override the getNewContent method, that >the objects i create after [super..] vanish? (i guess what i'm really >asking is whether the object created with getNewContent is the object or >is it copied?) could you point me in a direction that i could educate >myself better on this process? > You might want to look at the description for the finishUnarchiving method (for example in Object). This mechanism can allow a template to return another object, sort of like: - finishUnarchiving { Window * new_window; new_window = [Window newContent...] // init from // template's instance variables [self free]; return new_window; } So if you had overridden the newContent... method, your self would really be the "true" object and no copying needs to be involved. Note, of course, the actual class to which the new method is sent would not be hard-coded, but specified from information kept by Interface Builder. -- Edward Jung The Deep Thought Group, L.P. BIX: ejung 3400 Swede Hill Road NeXT or UNIX mail Clinton, WA. 98236 UUCP: uunet!dtgcube!ed Internet: ed@dtg.com