• 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: cocoa-dev digest, Vol 2 #3727 - 15 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Menu
  • Next by Date: Re: Speed comparison: compare:, methodForSelector: &
  • Previous by thread: Re: Opening NSDocument window in the background
  • Next by thread: Re: Speed comparison: compare:, methodForSelector: &
  • Index(es):
    • Date
    • Thread