Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!pyramid!voder!apple!lsr From: lsr@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: enabling the correct entries in the 'Edit' menu Message-ID: <6328@apple.UUCP> Date: Wed, 23-Sep-87 19:37:28 EDT Article-I.D.: apple.6328 Posted: Wed Sep 23 19:37:28 1987 Date-Received: Sat, 26-Sep-87 09:09:24 EDT References: <876@cadnetix.UUCP> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 21 Keywords: menu, edit, cut, paste In article <876@cadnetix.UUCP> jva@cadnetix.UUCP (Joe VanAndel) writes: > >I have discovered how to determine that a desk-accessory window had >been activated or de-activated, and enabled/disabled the menu >items appropriately, but then I discovered that I had missed the >case of the desk-accesssory being closed, while its window was active. In MacApp we check for an active desk accessory after each event. You do this by looking at the window kind field of the FrontWindow. DA Windows have a negative window kind (it is the DA refnum). If FrontWindow returns NIL, then there are no windows open. -- Larry Rosenstein Object Specialist Apple Computer AppleLink: Rosenstein1 UUCP: {sun, voder, nsc, mtxinu, dual}!apple!lsr CSNET: lsr@Apple.com