home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / oop / macapp3 / 36 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!applelink.apple.com
  2. From: KVICTOR@AppleLink.Apple.COM (Victor Consulting, Ken Victor,CST)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: TWindow::PoseModally Bug
  5. Message-ID: <722554516.0692224@AppleLink.Apple.COM>
  6. Date: 21 Nov 92 23:01:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 18
  10.  
  11. I believe the following is a bug in MacApp 3.0.1.
  12.     Create a View with ViewEdit 3.0 that has a window, a dialog view, and ...,
  13.     in your program call NewTemplateWindow and then call aWindow->PoseModally.
  14.  
  15. TWindow->PoseModally gets the dialog behavior first, then opens the window
  16. (which will open the dialog view) and then calls itsDialogBehavior->PoseModally
  17. (if itsDialogBehavior was non null at entry to TWindow->PoseModally).  The
  18. problem is that the dialog behavior isn't created until the dialog view is
  19. opened.  In other words, the window should be opened before getting
  20. itsDialogBehavior.
  21.  
  22. Also, nowhere in this sequence is itsDialogBehavior->fModal set to true.  As a
  23. result of this the window that you thought you were modally posing is posed
  24. modeless!!
  25.  
  26. Ken Victor
  27. (415) 964-9870
  28.  
  29.