🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.oop.powerplant
Article #54

Re: Appearence Demo vs OSX

#54
From: Richard Wesley
Date: Thu, 22 Mar 2001 16:33
67 lines
3659 bytes
In article <meleuwal-404F9A.14461721032001@news.xmission.com>,
 Mel Walker <meleuwal@starSP0MtrekSP0Mmail.com> wrote:

> In article <hawkfish-E914D1.08360420032001@brokaw.wa.com>,
>  Richard Wesley <hawkfish@electricfish.com> wrote:
> 
> > > In article <hawkfish-BA6D2F.09175619032001@brokaw.wa.com>,
> > >  Richard Wesley <hawkfish@electricfish.com> wrote:
> > > 
> > > > - The background lines at the edge of the dialog are not in line with 
> > > > the rest of the dialog;
> [...]> 
> > According to the Carbon Dev mailing list:
> > 
> > - This is a bug in Aqua caused by the background pattern not taking the 
> > origin into account;
> 
> Actually, it seems that the problem is that the pattern actually *does* 
> takes the origin into account, not that it doesn't. *The programmer* 
> hasn't taken the origin into account, because on OS 9 the backgrounds 
> are generally just white (or gray), and not patterned like OS X.

See below.

> > - Apple refuses to fix the problem;
> 
> ....'cause it's not a problem, it's always been that way, and QuickDraw 
> is *designed* to do it that way, but it never shows up in windows that 
> don't erase to a pattern....

Someone at Apple explained this to me.  I don't quite buy it (as I feel 
that this background is not part of the end user API, but I am more 
resigned to their viewpoint now.

> > - A number of frameworks besides PowerPlant have the same problem;
> 
> Anything that expects a pattern's starting point not to change if the 
> origin of the GrafPort changed would have this problem.

Exactly, and this is a technique used by a number of application 
frameworks, not just PP.

> > - The only real workaround is to intercept the EraseRect and EraseRgn 
> > bottlenecks and fix the origin before calling StdXXX;
> 
> Why not just modify the PP files that do the erasing? Or would that 
> include too many files? 

Bingo.  I can fix the bottlenecks in my dialog base class and be done 
with it.  (Hopefully - I still haven't tried it.)

> In any event, I expect that's a solution for a 
> small application only, though. A PowerPlant fix is in order.

Indeed.

-- 

- rmgw

http://www.electricfish.com/hawkfish/

----------------------------------------------------------------------------
Richard Wesley           Electric Fish, Inc.       hawkfish@electricfish.com

"Grownups have the most uninteresting explanations for things."
                 - C. S. Lewis, _The Magician's Nephew_
Technical Details
Message-ID: <hawkfish-2C61B2.08333222032001@brokaw.wa.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!nwnews.wa.com!brokaw.wa.com!hawkfish
References: <hawkfish-BA6D2F.09175619032001@brokaw.wa.com> <ned-03E281.22273219032001@corp.supernews.com> <hawkfish-E914D1.08360420032001@brokaw.wa.com> <meleuwal-404F9A.14461721032001@news.xmission.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,13567671efe4a521
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f7f77,13567671efe4a521
X-Google-Attributes: gidf7f77,public
X-Google-ArrivalTime: 2001-03-22 08:44:21 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!nwnews.wa.com!brokaw.wa.com!hawkfish
From: Richard Wesley <hawkfish@electricfish.com>
Newsgroups: comp.sys.mac.oop.powerplant,codewarrior.mac
Subject: Re: Appearence Demo vs OSX
Date: Thu, 22 Mar 2001 08:33:32 -0800
Organization: Electric Fish, Inc.
Lines: 67
Message-ID: <hawkfish-2C61B2.08333222032001@brokaw.wa.com>
References: <hawkfish-BA6D2F.09175619032001@brokaw.wa.com> <ned-03E281.22273219032001@corp.supernews.com> <hawkfish-E914D1.08360420032001@brokaw.wa.com> <meleuwal-404F9A.14461721032001@news.xmission.com>
NNTP-Posting-Host: fugu.electricfish.com
X-Trace: brokaw.wa.com 985278811 6064 206.63.251.169 (22 Mar 2001 16:33:31 GMT)
NNTP-Posting-Date: 22 Mar 2001 16:33:31 GMT
User-Agent: MT-NewsWatcher/3.1 (PPC)