Add autosave name to document window/table and hopefully fix an exception in the info window.

This commit is contained in:
Nate Weaver 2012-07-06 00:57:47 -05:00
parent aa3d1dfd8c
commit 680d95f9d3
3 changed files with 5 additions and 2 deletions

View File

@ -190,6 +190,7 @@ FSGetCatalogInfo:
- (void)documentInfoDidChange:(NSNotification *)notification
{
#pragma unused(notification)
currentDocument = [[notification object] objectForKey:@"NSDocument"];
[self updateInfoWindow];
}

View File

@ -24,7 +24,7 @@
switch( power )
{
case 0:
[string appendFormat:NSLocalizedString(@"%.0f", nil), value];
[string appendFormat:NSLocalizedString(@"%.0f bytes", nil), value];
break;
case 10:

View File

@ -287,9 +287,10 @@
</object>
</object>
<double key="NSRowHeight">17</double>
<int key="NSTvFlags">-624918528</int>
<int key="NSTvFlags">-608141312</int>
<reference key="NSDelegate"/>
<reference key="NSDataSource"/>
<string key="NSAutosaveName">Resource List</string>
<int key="NSColumnAutoresizingStyle">1</int>
<int key="NSDraggingSourceMaskForLocal">-1</int>
<int key="NSDraggingSourceMaskForNonLocal">0</int>
@ -365,6 +366,7 @@
<string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string>
<string key="NSMinSize">{250, 222}</string>
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
<string key="NSFrameAutosaveName">Resource Document</string>
<int key="NSWindowCollectionBehavior">128</int>
<bool key="NSWindowIsRestorable">NO</bool>
</object>