Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages
Started by Victor Consulting, Ken Victor,CS...
Sat, 21 Nov 1992 23:01
TWindow::PoseModally Bug
Author: Victor Consulting, Ken Victor,CS...
Date: Sat, 21 Nov 1992 23:01
Date: Sat, 21 Nov 1992 23:01
18 lines
1246 bytes
1246 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads