sheets
sheets
- Subject: sheets
- From: Robert Goldsmith <email@hidden>
- Date: Sat, 10 Nov 2001 12:53:17 +0000
Hi all :)
Thanks for the help :)
One thing that confused me was that, when I tried [NSApp
endSheet:mySheet] it worked fine but quit the application. As I have
had a couple of replies saying this is the corect way of doing
things, i now realise that what was happening is:
The sheet and the main window both have the same delegate class
instance (it's a very small app I'm simply playing around with). For
the main window, when it closes, the application should quit so
that's what I do. But when the sheet closes, because it had the same
delegate, it also quit the application when it closed ...
Thanks for clearing this up for me :)
Robert
--