Re: cocoa-dev digest, Vol 2 #3727 - 15 msgs
Re: cocoa-dev digest, Vol 2 #3727 - 15 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #3727 - 15 msgs
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 23 Feb 2004 04:52:29 -0800 (PST)
I don't know what it means when you say: "The last
window has the delegate class." Your class that has
the appshouldterminate needs to be the delegate of
NSApp
This works for me:
[NSApp setDelegate:self]; //to respond to
applicationShouldTerminateAfterLastWindowClosed:
Ted
>
Message: 11
>
To: email@hidden
>
From: Roberto Sobachi <email@hidden>
>
Subject: Problems with
ApplicationShouldTerminateAfter...
>
Date: Mon, 23 Feb 2004 11:57:57 +0100
>
>
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.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
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.