Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!hoser.berkeley.edu!bryce From: bryce@hoser.berkeley.edu.UUCP Newsgroups: comp.sys.amiga Subject: Re: Intuition's "dont mess with these" fields... Message-ID: <21517@ucbvax.BERKELEY.EDU> Date: Fri, 30-Oct-87 00:54:29 EST Article-I.D.: ucbvax.21517 Posted: Fri Oct 30 00:54:29 1987 Date-Received: Sun, 1-Nov-87 06:08:10 EST References: <1961@amiga.amiga.UUCP> <1825@cadovax.UUCP> <21469@ucbvax.BERKELEY.EDU> <1830@cadovax.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: bryce@hoser.berkeley.edu.UUCP (Bryce Nesbitt) Organization: University of California at Berkeley Lines: 35 Keywords: Intuition verboten nopokenzefields In article <1830@cadovax.UUCP> keithd@cadovax.UUCP (Keith Doyle) writes: >In article <21469@> bryce@hoser.berkeley.edu (Bryce Nesbitt) writes: > >>BTW: The "LockIBase(0L)" call can be used to disable Intuition temporarily >>while doing wild things. Again it is not good to do such things, but at >>least try to protect yourself. Example: ^^^^^ >>long key; >> key=LockIBase(0L); >> /* Do funny stuff here... but not much of it... be QUICK! */ >> UnlockIBase(key); > >Sounds reasonable. Is this any better/worse/different than doing a >Forbid()/Permit() or an Enable()/Disable() ? It is much better. LockIBase(0L); will force your task to wait until Intuition is done doing things like, say, dragging a screen. If you just Forbid() or Disable() you might catch Intuition in the middle. You are going to get a lot of hostility from Amiga programmers if you release a product that mucks with the Intuition private data structure. I speak for many of them when I say that *WE* want Commodore to release an updated private data structure next release. If *you* screw with this, *WE* are going to be upset. In fact, I rather hope Commodore scrambles that structure in the next release... just so programs that break the rules get broken. (That would be as of Intuition version 35). It is far better to clean up the software base now than be crippled in the future. |\ /| . Ack! (NAK, SOH, EOT) {o O} . bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce (") U "I never said you _could_, I merely said you _should_." -Humpty Dumpty