Author: mlytwyn
Date: Thu Feb 9 19:09:51 2017
New Revision: 40332
URL: http://svn.gna.org/viewcvs/gnustep?rev=40332&view=rev
Log:
Add extracting the columns autosave name for NSBrowser - still need to
implement autosave
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSBrowser.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSBrowser.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSBrowser.m?rev=40332&r1=40331&r2=40332&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSBrowser.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSBrowser.m Thu Feb
9 19:09:51 2017
@@ -702,6 +702,7 @@
NSUInteger indexOfSubStrings;
NSInteger column;
BOOL useDelegate = NO;
+ NSWarnMLog(@"path: %@", path);
if ([_browserDelegate respondsToSelector:
@selector(browser:selectCellWithString:inColumn:)])
@@ -826,6 +827,7 @@
[self addColumn];
column++;
}
+ NSWarnMLog(@"path: %@ subStrings: %@", path, subStrings);
// Clean up local memory usage
RELEASE(subStrings);
@@ -885,7 +887,7 @@
* people should not depend on methods that return strings to return
* immutable strings.
*/
-
+ NSWarnMLog(@"sep: %@", separator);
return AUTORELEASE (separator);
}
@@ -2929,6 +2931,7 @@
NSCell *proto = [aDecoder decodeObjectForKey: @"NSCellPrototype"];
NSString *title = [aDecoder decodeObjectForKey: @"NSFirstColumnTitle"];
NSString *sep = [aDecoder decodeObjectForKey: @"NSPathSeparator"];
+ NSString *colAutosavename = [aDecoder decodeObjectForKey:
@"NSColumnsAutosaveName"];
long flags;
NSSize bs;
@@ -2989,7 +2992,8 @@
[self setCellPrototype: proto];
[self setPathSeparator: sep];
[self setTitle: title ofColumn: 0];
-
+ [self setColumnsAutosaveName: colAutosavename];
+
if ([aDecoder containsValueForKey: @"NSBrFlags"])
{
flags = [aDecoder decodeIntForKey: @"NSBrFlags"];
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs