• 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: Problems with ApplicationShouldTerminateAfter...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with ApplicationShouldTerminateAfter...


  • Subject: Re: Problems with ApplicationShouldTerminateAfter...
  • From: Eric Forget <email@hidden>
  • Date: Mon, 23 Feb 2004 12:42:14 -0500

> I'm trying to implement
>
> - (BOOL) applicationShouldTerminateAfterLastWindowClosed:(id)sender
> {
> return YES;
> }
>
> but when I try to close Last window with the CLOSE button, It doesn't
> close. When I try to clisk icon in dock, it returns me a panel window
> with the text:
> can't create new document. Why?
>
> The last window has the delegate class.

Does applicationShouldTerminateAfterLastWindowClosed is being called at all?
Put either a breakpoint or an NSLog in it to check. Also be aware that last
window is not equal to last NSPanel. NSPanel doesn't count. Make sure the
last window your are closing is really a NSWindow.

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Problems with ApplicationShouldTerminateAfter... (From: Robert Cerny <email@hidden>)

  • Prev by Date: Re: Finding paragraphs in NSTextStorage
  • Next by Date: Re: [Slightly OT] Shareware donation collection
  • Previous by thread: Re: Problems with ApplicationShouldTerminateAfter...
  • Next by thread: Re: Problems with ApplicationShouldTerminateAfter...
  • Index(es):
    • Date
    • Thread