I suspect it's because they think you might want to get info out of the
sheet before it is released (out of textfieldsviews, for example). It might
be like a call to ModalDialog in classic programming--it might be called
multiple times for the same dialog.
But the real answer is, "because that's how it works". You can always
question one design decision or another, sometimes you can even make a case
that it's the wrong decision, but a decision has to be made.
Donald
on 12/3/01 4:16 PM, Rémi Zara at <remi_zara...> wrote:
> Hi,
>
> I finally found out that I had to call orderOut on my sheet to make it
> disappear.
> Can someone explain to me why NSApplication's endSheet method does not
> do this by itself?
> (I did not find it in Apple's doc, but in a tutorial on
> cocoadevcentral.com... :-( )
>
> Thanks,
>
> Rémi
>
> --
> Rémi Zara
> web: http://www.remi-zara.net/
>
> _______________________________________________
> MacOSX-dev mailing list
> <MacOSX-dev...>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
--
Donald Brown
<gadgetdon...>
http://www.eamontales.comWe have met the enemy and he is us - Pogo