Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!oliveb!pyramid!voder!apple!tecot From: tecot@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: What makes programming the Mac difficult? Message-ID: <1006@apple.UUCP> Date: Thu, 11-Jun-87 17:18:14 EDT Article-I.D.: apple.1006 Posted: Thu Jun 11 17:18:14 1987 Date-Received: Sun, 14-Jun-87 01:46:38 EDT References: <869@apple.UUCP> <1499@midas.TEK.COM> <981@apple.UUCP> <1004@apple.UUCP> Reply-To: tecot@apple.UUCP (Ed Tecot) Organization: Apple Computer Inc., Cupertino, USA Lines: 33 In article <1004@apple.UUCP> lsr@apple.UUCP (Larry Rosenstein) writes: >In article <981@apple.UUCP> lsr@apple.UUCP (Larry Rosenstein) writes: >> >>I don't think the problem is with the CopyBits itself. I have done large >>CopyBits with no problems (although this was using srcCopy mode, which >>might be a special case). The only reference to a 3K limit I can recall is >>in the Tech Note about MacDraw's picture format. > >Someone here pointed out that the 3K reference is in Inside Macintosh (p. >I-188). > >However, the rule cannot be a strict one. For example, the Toolbox itself >does not follow it to the letter. When you move a window, the Window >Manager does one CopyBits, regardless of the screen size. Again, this is >using srcCopy mode, so perhaps the stack is not used in that particular >case. > >This is a case where Inside Macintosh (or a Tech Note) needs to be more >explicit about what the stack is used for, so programmers can decide if the >warning applies to their applications. > >I agree that QuickDraw should handle the boundary conditions better (ie, >without bombing), but I still would like to know what's going on inside (in >order to do optimizations, for example). > Actually, I got the impression that the 3K convention was only necessary for recorded pictures that would make their way to the scrap. The reason behind this is so that any application receiving a picture from the scrap could guarantee being able to play it if there was at least 3K of stack space available. _emt