Bullsheet cured
Bullsheet cured
- Subject: Bullsheet cured
- From: Steve Klingsporn <email@hidden>
- Date: Sun, 27 Oct 2002 01:48:54 -0500
It seems that using the NSApplication.runModalForWindow() is a recipe
for pain.
Kristin from Apple says
(
http://cocoa.mamasam.com/COCOADEV/2001/06/2/5789.php):
"Hi Thomas,
I think you may be getting into a strange state by calling both
beginSheet: and runModalForWindow:. beginSheet: should do what you
want, and there should be no reason to call runModalForWindow: (which is
meant to display a normal looking window which is application modal).
What happens if you just call beginSheet:, then endSheet: and orderOut:
to dismiss your sheet?"
--
I think the reason we're using runModalForWindow with sheets is because
Apple's
sample code does...
Removing all of this has greatly improved my sheet code, and now
everything
works fine.
I have struggled for several hours with this tonight.
Thanks,
Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.