applicationShouldTerminateAfterLastWindowClosed
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.