Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!uwmacc!dubois From: dubois@uwmacc.UUCP (Paul DuBois) Newsgroups: net.micro.mac Subject: Resourceless alert/item lists Message-ID: <290@uwmacc.UUCP> Date: Thu, 25-Sep-86 16:11:16 EDT Article-I.D.: uwmacc.290 Posted: Thu Sep 25 16:11:16 1986 Date-Received: Fri, 26-Sep-86 01:10:15 EDT Distribution: net Organization: Brain-Dead Software Lines: 21 I just posted to mod.sources.mac some source for doing an alert without resources. It displays any message and can be configured to 1, 2 or 3 buttons, thus is suitable for OK, Yes/No, Yes/No/Cancel, etc. types of alerts. The default button (the one with the bold outline around it) may be specified. It works by creating the window with NewDialog and by constructing the item list itself. What's it good for? One thing is that libraries using alerts can be distributed by source or object code only, so they can be made real plug-ins. Nothing need be hacked into the resource fork of anything using them. -- Paul DuBois UUCP: {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois | ARPA: dubois@easter --+-- dubois@rhesus (no kidding) | | "If it works, I didn't write it." "That's for sure!"