Re: modal window + sheet
Re: modal window + sheet
- Subject: Re: modal window + sheet
- From: Jacob Lukas <email@hidden>
- Date: Sun, 19 Sep 2004 13:12:12 -0700
On Sep 19, 2004, at 12:59 PM, Daniel Jalkut wrote:
I am able to attach a sheet to a modal window without breaking the modality. I just use [NSApp beginSheet...] attaching to the modal window. When the sheet is dismissed, instead of calling stopModalWithCode, I just do an orderOut of the sheet, and call [NSApp endSheet:].
I tried that. It didn't work. Maybe I'm doing something different.
I make an alert, and save the buttons. One of them I set target to
self and action to
enter:. I then use
[alert runModal] to run the modal.
When
enter: executes, it uses
[[NSApplication sharedApplication] beginSheet:...] but the application crashes.
Should I not use
[alert runModal] but do my own modal code?
Thanks
Jacob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden