🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11286

Re: inputs from many windows.

#11286
From: Stuart H. Ferguson
Date: Wed, 01 Feb 1989 00:18
20 lines
1592 bytes
+-- tlm@newton.physics.purdue.edu.UUCP (Timothy Lee Meisenheimer) writes:
| Well, I'm working on a little project which will have lots of little
| windows 
|  [...] what have you done in your event loop to read
| all these messages and tell which window they come from? I haven't seen
| any good examples yet (though I'm going to check out what Matt does in

Modeler 3D lets you open an unlimited number of windows, and I just let
Intuition create a new UserPort for each one.  Modeler just waits on the
logical-or of the waitmask for each window.  Works fine.

One thing that caused me some trouble, however, is the fact that Intuition
will start to re-use SigBit's once you've used them all.  This means that
two windows can share the same signal bit -- not a terrible problem, but
something to be aware of so you don't assume that all signal bits are unique.
I made this assumption initially and found that windows stopped working
in stress-testing (multi-dozens of windows).  It wasn't hard to fix.
-- 
		Stuart Ferguson		(shf@well.UUCP)
		Action by HAVOC
Technical Details
Message-ID: <10549@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!well!shf
References: <1918@pur-phy>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!well!shf
From: shf@well.UUCP (Stuart H. Ferguson)
Newsgroups: comp.sys.amiga.tech
Subject: Re: inputs from many windows.
Summary: Intuition re-uses SigBit's
Keywords: windows, messages, IDCMP, stupid!
Message-ID: <10549@well.UUCP>
Date: 1 Feb 89 00:18:07 GMT
References: <1918@pur-phy>
Reply-To: shf@well.UUCP (Stuart H. Ferguson)
Distribution: comp.sys.amiga.tech
Organization: The Blue Planet
Lines: 20