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