Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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?




On 05/gen/05, at 19:43, Sean McBride wrote:

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

That's normal.

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?

See:

- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication
hasVisibleWindows:(BOOL)flag

in NSApplication docs.

Oks, in this way i can catch the user event click on my icon in the doc, but in which i can restore the windows? There is a way to reopen the windows that the program open when the app is launched the first time?
How to implement this function?


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:
This email sent to email@hidden


References: 
 >[Newbie] How to make application reappear after a close? (From: whamoo <email@hidden>)
 >Re: [Newbie] How to make application reappear after a close? (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.