Re: Closing alert sheet
Re: Closing alert sheet
- Subject: Re: Closing alert sheet
- From: Peter Borg <email@hidden>
- Date: Fri, 11 Nov 2005 14:19:29 +0100
Hi!
Just use [sheet close] instead of [(NSWindow*)contextInfo close].
Peter
On 11/11/05, Andrea Salomoni <email@hidden> wrote:
> Hi to all,
>
> I need to close a warning sheet after the app did some tasks.
>
> -(void)sheetClosed:(NSWindow*)sheet returnCode:(int)returnCode
> contextInfo:(void*)contextInfo
> {
> if (returnCode == NSAlertDefaultReturn)
> {
> [upgrade startDownloadingURL:self];
>
> [(NSWindow*)contextInfo close];
> }
> }
>
> But when I close the sheet ... the main window app is closed with the
> sheet
> Why ?
_______________________________________________
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