• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Closing alert sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Closing alert sheet (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: -[NSURL path] returning empty string for relative file URL
  • Next by Date: Re: MVC and NSBezierPath encoding?
  • Previous by thread: Re: Closing alert sheet
  • Next by thread: how to count NSThreads and NSTasks ?
  • Index(es):
    • Date
    • Thread