• 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: [Newbie] How to make application reappear after a close?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] How to make application reappear after a close?


  • Subject: Re: [Newbie] How to make application reappear after a close?
  • From: Stephan Burlot <email@hidden>
  • Date: Wed, 5 Jan 2005 14:54:37 +0100


Simple: you CLOSE a window, and QUIT an application.

To make your application quit after last window closed, implement this delegate:

- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
return YES;
}


To make the application re-open a window when you click on the dock, there surely is some delegate/notification sent to you.
Looking at the NSApplication doc might help ;-)


Stephan

Le 5 janv. 05, à 14:38, whamoo a écrit :

Hello to all,

I'm new to cocoa programming, and i have a lot of problem =)

First: I build my application, create interface, writing function, compile and run, all work fine, but if i click on red cross, or use cmd-w my application close, doesn't quit, but if i press on dock icon, only the menu reappear not the window.... How to tell application on a click on dock if it is close to reappear?

And, if i wold that application quit when no more windows are opened?
I found some problem understanding difference about quit and close....

Thanks a lot

Whamoo www.rknet.it
Powered by:
- MacOsX
- Gnu / Linux Debian Sarge
- Amiga Os 3.9
- Milk

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >[Newbie] How to make application reappear after a close? (From: whamoo <email@hidden>)

  • Prev by Date: [Newbie] How to make application reappear after a close?
  • Next by Date: ID3 tags from AAC files
  • Previous by thread: [Newbie] How to make application reappear after a close?
  • Next by thread: Re: [Newbie] How to make application reappear after a close?
  • Index(es):
    • Date
    • Thread