[NEWBIE] Sheets problem
[NEWBIE] Sheets problem
- Subject: [NEWBIE] Sheets problem
- From: Thomas Deniau <email@hidden>
- Date: Sat, 23 Jun 2001 09:58:41 +0200
Hi !
I've a small problem : I've three NSWindows, one blank sheet (call it
sheet A), an another sheet (sheet B) and a my app's main window, and two
NSViews.
I add my first NSView as a subview of A's content view, I display A
(using NSApp's beginSheet), and use runModalForWindow:. Then, when the
user clicks on a button, I replace this subview with the second view,
and when the user clicks on another button, I dismiss the sheet (using
stopModal, then endSheet, and then orderOut).
Next I try to display B, using beginSheet & runModalForWindow ... the
sheet appears as a normal window (I don't know why). When I dismiss it
(stopModal, endSheet, orderOut), sheet A reappears ! can someone help ???
Thanks in advance,
--
Thomas Deniau