home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!apple!grobbins
- From: grobbins@Apple.COM (Grobbins)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Fun with WaitNextEvent
- Message-ID: <75530@apple.apple.COM>
- Date: 12 Dec 92 22:48:50 GMT
- References: <nerm-081292102455@90.10.20.86> <1992Dec9.100715.28595@kth.se> <bobert.724037041@godzilla>
- Organization: Experimental System Software Department
- Lines: 32
-
- In article <bobert.724037041@godzilla> bobert@informix.com (Robert Murphy) writes:
- >In a recent issue of Develop, there's an article on faceless background apps
- >called "Be My Guest", in which C.K. Haun says: ...
- >
- >So... according to this article, an FBA doesn't have to initialize any
- >managers. I presume this information is correct, so I guess maybe an app
- >that doesn't have "background-only" set in the size resource is different
- >from an FBA?
-
- No, the article is not entirely correct. A faceless background app
- (AKA background-only app) definitely should call InitGraf; indeed, any
- app which uses the Apple Event Manager should call InitGraf (since the
- Apple event manager uses QuickDraw's Random function.) An FBA must have
- both the canBackground and backgroundOnly bits set; by definition,
- that makes it an FBA.
-
- An upcoming tech note ("Background-Only Applications") will try to
- address gotchas of FBAs and correct and supplement the New Inside
- Macintosh information. (Other gotchas: the default stack for an FBA
- is only 2K; you cannot set an arbitrary stack, but rather SetApplLimit
- enforces a 24K minimum on color machines; routines which might
- sometimes raise dialogs can kill FBAs; launch order vis-a-vis the
- Finder is strange; use of the Notification Manager has HI implications
- because the user may not know the FBA is running.) Sample code is
- available via anonymous ftp from ftp.apple.com (see
- /dts/mac/sc/snippets/interapp.comm/smalldaemon.hqx.)
-
-
- Grobbins grobbins@apple.com
-
- Usual disclaimers apply.
-
-