Re: Series of sheets
Re: Series of sheets
- Subject: Re: Series of sheets
- From: Chris Suter <email@hidden>
- Date: Wed, 22 Aug 2007 12:30:36 +1000
On 22/08/2007, at 11:41 AM, Randall Meadows wrote:
I know it can be done, but I can't figure out why, when I follow
the sample code, it doesn't work for me.
I display an NSOpenPanel using beginSheetForDirectory. I set the
didEndSelector to one of my methods, and it's called appropriately.
In that method, I call [panel close], then open my own sheet using
[NSApp beginSheet...] just as is shown in the sample code at
<http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/
Tasks/UsingCascadingSheets.html>. After my task is finished, I then
end my sheet with [NSApp endSheet:mySheet]; [mySheet orderOut:self].
The next time I try to open that same NSOpenPanel, all I get is a
system beep when I try to execute the beginSheetForDirectory call.
In trying to figure this out, I changed the NSOpenPanel to be
modeless (using [openPanel beginForDirectory...]), and then I ended
up with the system beep when I tried to run my custom sheet again
(got the beep when trying to execute [NSApp beginSheet...].
I would appreciate any pointers to what I seem to be missing.
Are you calling [NSApp endSheet:] before opening the new sheet?
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden