• 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: App Delegate method not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App Delegate method not being called


  • Subject: Re: App Delegate method not being called
  • From: koko <email@hidden>
  • Date: Mon, 27 Jun 2011 16:06:56 -0600

On Jun 27, 2011, at 3:10 PM, Jens Alfke wrote:

>
> On Jun 27, 2011, at 12:48 PM, koko wrote:
>
>> Now when I click the red close button the app delegate method applicationShouldTerminate is not called.
>
> So, by default closing the window wouldn’t quit the app. If it is, that implies that your delegate also has a -applicationShouldTerminateAfterLastWindowClosed: method, that is returning YES. You might set a breakpoint there and see that it’s returning the correct value.

The App has only one window and no method applicationShouldTerminateAfterLastWindowClosed
>
>
>> However, if I do not execute the method referenced above applicationShouldTerminate is called when clicking the close button.
>
> If that method opened another window somehow, then closing your main window would not cause the app to terminate, because it wouldn’t be the last window.
>

The method make now windows


_______________________________________________

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

References: 
 >App Delegate method not being called (From: koko <email@hidden>)
 >Re: App Delegate method not being called (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: App Delegate method not being called
  • Next by Date: Re: App Delegate method not being called
  • Previous by thread: Re: App Delegate method not being called
  • Next by thread: Re: App Delegate method not being called
  • Index(es):
    • Date
    • Thread