Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: Owner of a delegate ... Message-ID: <611@toaster.SFSU.EDU> Date: 7 May 90 21:09:51 GMT References: <90127.154746CMH117@psuvm.psu.edu> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Organization: San Francisco State University Lines: 15 In article <90127.154746CMH117@psuvm.psu.edu> CMH117@psuvm.psu.edu (Charles Hannum) writes: > When the delegate receives a message (like a call to windowDidBecomeKey), is > there a way to directly determine which Window the message is in reference to > without using an outlet in the delegate's class? windowDidBecomeKey: takes a sender argument; whether it conveys useful information I'll leave as an exercise to the reader. My best advice is not to write code such that the question comes up at all, but if you must--read the descriptions of keyWindow (Application) and isKeyWindow (Window) and see if those tell you what you want to know. -=EPS=-