How do i, in cocoa : obj-c do something when someone clicks the close button on a window?
i am trying to find this out so that when they do it i can ask them if they want to quit. Then if they do I quit the app, otherwise they have to click the dock to bring the window back or file:new (i have this already).
I also would like to know how to save a boolean preference and a double value in a plist preferences file. Could you also show me how to recover these prefernces when the app starts.
I have looked at the o'reily and apple exxamples and they are either irrelevant (o'reily) or dont work in x.2.4 and DevTools Dec2002.
I know this is alot but thanx for any help.
i am trying to find this out so that when they do it i can ask them if they want to quit. Then if they do I quit the app, otherwise they have to click the dock to bring the window back or file:new (i have this already).
I also would like to know how to save a boolean preference and a double value in a plist preferences file. Could you also show me how to recover these prefernces when the app starts.
I have looked at the o'reily and apple exxamples and they are either irrelevant (o'reily) or dont work in x.2.4 and DevTools Dec2002.
I know this is alot but thanx for any help.