• 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: applicationShouldTerminateAfterLastWindowClosed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applicationShouldTerminateAfterLastWindowClosed


  • Subject: Re: applicationShouldTerminateAfterLastWindowClosed
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 11 Feb 2004 02:08:27 +0100

At 2:44 Uhr +0000 09.02.2004, Steve Palmer wrote:
Out of curiosity, how do you use this delegate? The documentation is not very clear. I set [NSApp setDelegate:self] in my app controller and implemented this delegate, but the delegate never gets called after I close the last visible window. What could I be missing?

I usually just instantiate a copy of my controller/delegate object in MainMenu.nib, hook it up to the app's "delegate" (by control-dragging from the "File's Owner" to the delegate object) and that's it.

Note that, of course, that method has to be named applicationShouldTerminateAfterLastWindowClosed:, or it won't be called. I merely used "foo" to make it easier to read.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >applicationShouldTerminateAfterLastWindowClosed (From: Peter Wollschlaeger <email@hidden>)
 >Re: applicationShouldTerminateAfterLastWindowClosed (From: "M. Uli Kusterer" <email@hidden>)
 >Re: applicationShouldTerminateAfterLastWindowClosed (From: Steve Palmer <email@hidden>)

  • Prev by Date: Re: Getting an NSString out of an NSTextView;
  • Next by Date: Re: Adding to the About window.
  • Previous by thread: Re: applicationShouldTerminateAfterLastWindowClosed
  • Next by thread: Re: applicationShouldTerminateAfterLastWindowClosed
  • Index(es):
    • Date
    • Thread