Re: Application behaving strangely after displaying a sheet
Re: Application behaving strangely after displaying a sheet
- Subject: Re: Application behaving strangely after displaying a sheet
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 4 Nov 2001 21:34:41 +0000
On Sunday, November 4, 2001, at 09:25 pm, Bruno Blondeau wrote:
[NSApp beginSheet:mySheet
modalForWindow:[myTextView window]
modalDelegate:self
didEndSelector:NULL
contextInfo:NULL];
modalVal = [NSApp runModalForWindow:mySheet];
I don't think that you should use runModalForWindow with a sheet.
Instead, use the didEndSelector in [NSApp beginSheet:]
There is a very simple tutorial on using sheets over at
http://www.cocoadevcentral.com
-- Finlay