Correctly handling users closing windows

svn path=/trunk/netsurf/; revision=11311
This commit is contained in:
Sven Weidauer 2011-01-13 19:00:04 +00:00
parent 2ab5636619
commit dbaaa53f68
2 changed files with 17 additions and 6 deletions

View File

@ -50,4 +50,9 @@
[view setBrowser: browser];
}
- (void)windowWillClose:(NSNotification *)notification;
{
if (NULL != browser) browser_window_destroy( browser );
}
@end

View File

@ -12,7 +12,7 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="38"/>
<integer value="1"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@ -42,7 +42,7 @@
<int key="NSWindowStyleMask">15</int>
<int key="NSWindowBacking">2</int>
<string key="NSWindowRect">{{135, 249}, {691, 632}}</string>
<int key="NSWTFlags">544735232</int>
<int key="NSWTFlags">1618477056</int>
<string key="NSWindowTitle">NetSurf</string>
<string key="NSWindowClass">NSWindow</string>
<object class="NSToolbar" key="NSViewClass" id="392415761">
@ -146,11 +146,9 @@
<string key="NSToolbarItemPaletteLabel">URL</string>
<nil key="NSToolbarItemToolTip"/>
<object class="NSTextField" key="NSToolbarItemView" id="570769942">
<reference key="NSNextResponder"/>
<nil key="NSNextResponder"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{0, 14}, {96, 22}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="465639940">
<int key="NSCellFlags">-1804468671</int>
@ -585,6 +583,14 @@
</object>
<int key="connectionID">39</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="1005"/>
<reference key="destination" ref="1001"/>
</object>
<int key="connectionID">40</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@ -858,7 +864,7 @@
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">39</int>
<int key="maxID">40</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">