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

applicationShouldTerminateAfterLastWindowClosed


  • Subject: applicationShouldTerminateAfterLastWindowClosed
  • From: Peter Wollschlaeger <email@hidden>
  • Date: Sun, 8 Feb 2004 13:44:05 +0100

Hello,
I'm new here and this is my first posting. My English may have some
mistakes because I'm a German.
Now the question: To terminate an application when the user closes the
window I use a delegate with this code:

- (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSApplication
*) nameOfMyApp
{
// some checks
return YES;
}

Now I just found out that it works well too if I write

- (BOOL)applicationShouldTerminateAfterLastWindowClosed: xyz

where xyz can be id or any other undeclared name. So what is the sense
of this parameter?

Regards
Peter
_______________________________________________
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.

  • Follow-Ups:
    • Re: applicationShouldTerminateAfterLastWindowClosed
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Taking over the Command Key
  • Next by Date: Re: Converting wchar_t string to NSString
  • Previous by thread: Taking over the Command Key
  • Next by thread: Re: applicationShouldTerminateAfterLastWindowClosed
  • Index(es):
    • Date
    • Thread