Add GSInternal.h

This commit is contained in:
Gregory John Casamento 2024-04-01 20:04:39 -04:00
parent 110b650a95
commit 8e2df65156
3 changed files with 18 additions and 2 deletions

View file

@ -26,7 +26,9 @@
Boston, MA 02110-1301, USA.
*/
#import <Foundation/Foundation.h>
#import <Foundation/NSArray.h>
#import <Foundation/NSDictionary.h>
#import "GNUstepGUI/GSXibKeyedUnarchiver.h"
@class GSXibElement;

View file

@ -170,6 +170,8 @@ static NSString *ApplicationClass = nil;
@implementation GSXib5KeyedUnarchiver
// Singleton dictionary that holds any cached XIB data... cells, etc.
static NSMutableDictionary *CachedXibDictionary = nil;
static NSDictionary *XmlTagToObjectClassMap = nil;
static NSArray *XmlTagsNotStacked = nil;
static NSArray *XmlTagsToSkip = nil;
@ -207,7 +209,7 @@ static NSArray *XmlBoolDefaultYes = nil;
@"NSMutableArray", @"resources",
@"NSMutableArray", @"segments",
@"NSMutableArray", @"objectValues",
@"NSMutableArray", @"prototypeCellViews",
// @"NSMutableArray", @"prototypeCellViews",
@"NSMutableArray", @"allowedToolbarItems",
@"NSMutableArray", @"defaultToolbarItems",
@"NSMutableArray", @"rowTemplates",
@ -452,6 +454,7 @@ static NSArray *XmlBoolDefaultYes = nil;
@"decodeTransitionStyle:", @"NSTransitionStyle",
@"decodeShadowOffsetHoriz:", @"NSShadowHoriz",
@"decodeShadowOffsetVert:", @"NSShadowVert",
@"decodePrototypeCellViews:", @"NSPrototypeCellViews",
nil];
RETAIN(XmlKeyToDecoderSelectorMap);
@ -3004,6 +3007,12 @@ didStartElement: (NSString*)elementName
return [NSNumber numberWithFloat: size.height];
}
- (id) decodePrototypeCellViews: (GSXibElement *)element
{
NSLog(@"element = %@", currentElement);
return [NSArray array];
}
- (id) _decodePlacementForObject: (id)obj
{
NSGridRowAlignment alignment = NSGridCellPlacementNone;

View file

@ -30,8 +30,13 @@
Boston, MA 02110-1301, USA.
*/
#ifndef _GNUSTEP_H_GSXIBINTERNAL
#define _GNUSTEP_H_GSXIBINTERNAL
#import <Foundation/NSObject.h>
#import "GSXib5KeyedUnarchiver.h"
@interface GSXibInternal : NSObject
@end
#endif // _GNUSTEP_H_GSXIBINTERNAL