Re: Problems with ApplicationShouldTerminateAfter...
Re: Problems with ApplicationShouldTerminateAfter...
- Subject: Re: Problems with ApplicationShouldTerminateAfter...
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 23 Feb 2004 17:14:48 -0800
On Feb 23, 2004, at 5:08 AM, Robert Cerny wrote:
I'm trying to implement
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(id)sender
{
return YES;
}
it should be
- (BOOL)
applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender
{
return YES;
}
Although it is strictly correct to type the argument appropriately, the
declaration does not affect things at run time (see Obj-C
documentation).
Put another way, if you're having a problem with the method, it's not
because you typed "sender" as 'id' instead of 'NSApplication'.
mmalc
_______________________________________________
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.