Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!sdd.hp.com!decwrl!ucbvax!ANDREW.CMU.EDU!gk5g+ From: gk5g+@ANDREW.CMU.EDU (Gary Keim) Newsgroups: comp.soft-sys.andrew Subject: Re: Parents, just don't understand. Message-ID: Date: 26 Jul 90 15:52:03 GMT References: <4afktOe0z7FZMKvUUa@informatics.noname> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 23 Well, it is strange that there doesn't exist at least at view-class macromethod along these lines: class view { macromethods: Parent() ((self)->parent) }; I don't know what the reasoning is behind this because you just need to get your parent sometimes -- mostly when posting menus and keystates. Use this macro for any subclasses of view: #define Parent(self) ((self)->header.view.parent) This macro is also useful: #define ViewLinked(self) (view_IsAncestor(self,self_GetIM(self))) Gary Keim ATK Group