mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
9f9e15ced7
commit
a295dd62e6
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue