I tried as per your
it returns YES
(NSNotification*) --- in this I release stop thred and all objects..
But I have problem.
I have one thread which
is running , on closing application first thread exist and then
so menu will remain same
as earlier ..
also before I adding
this code ..
on closing ..only thread
can u suggest me what I
have to do ?
From: Mark Horner [mailto:address@hidden]
Wednesday, September 13, 2006 8:55 PM
Re: close application from title bar control - close
Normally MacOS X doesn't close an
application when you close all the windows, this may not be what you are used
to if you have used another systems.
If you do this in a word processor, say,
you will really upset people who want to close a window, and then open up a new
window, without the application quitting from underneath them. However, this
can sometimes be used for single-window desk accessory-type apps - think
Calculator, not TextEdit.
You can get the behaviour you want with
the user closes the last window the application has open.
This message is
sent when the last window is closed regardless of whether there are still open
panels (a panel in this case is defined as being an instance of NSPanelIf this method
returns NO to allow the application to terminate. Note that
Mac OS X v10.0 and later.
Mark Horner, Chartered
On 13 Sep 2006, at 12:18,
pradip patel wrote:
plz help me …?
created currencyconverter example given by apple..
have one problem..
run run program .it shows currencyconverter window.
close application –from title bar controls – close button ..then
Currency converter Menu is remaining.
I close whole application from title bar controls- close button