Fixed fatal problem with encoding editable textfields on macosx

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6242 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-03-09 23:32:24 +00:00
parent 9f9e15ced7
commit a295dd62e6

View file

@ -1005,7 +1005,26 @@ void __dummy_GMAppKit_functionForLinking() {}
// subclasses may not want to encode all subviews...
- (NSArray *)subviewsForModel
{
#ifdef GNU_GUI_LIBRARY
return [self subviews];
#else /* Do not encode Apple's private classes */
NSArray *views;
NSMutableArray *viewsToEncode;
id e, o;
NSString *classString;
views = [self subviews];
viewsToEncode = [NSMutableArray array];
e = [views objectEnumerator];
while ((o = [e nextObject]))
{
classString = NSStringFromClass ([o class]);
if ([classString isEqualToString: @"_NSKeyboardFocusClipView"] == NO)
[viewsToEncode addObject: o];
}
return viewsToEncode;
#endif
}
- (void)encodeWithModelArchiver:(GMArchiver*)archiver