home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19723 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.9 KB

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