* Source/NSButtonCell.m (-initWithCoder:):

Fix image scaling value extract from XIB.
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Source/GSXibLoading.m
        * Source/GSXibLoader.m
        Add IB defined runtime attribute processing for XIB
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38882 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-08-13 22:03:03 +00:00
parent 221a51e14e
commit fd098d8eda
5 changed files with 122 additions and 36 deletions

View file

@ -37,6 +37,7 @@
@class NSString, NSDictionary, NSArray, NSMutableDictionary, NSMutableArray;
@class NSNibBindingConnector;
@class GSXibElement;
@class NSNibConnector;
// Hack: This allows the class name FirstResponder in NSCustomObject and
// correctly returns nil as the corresponding object.
@ -158,6 +159,39 @@
- (NSEnumerator *) objectRecordEnumerator;
@end
@interface IBUserDefinedRuntimeAttributesPlaceholder : NSObject <NSCoding>
{
NSArray *runtimeAttributes;
NSString *name;
}
- (void) setName: (NSString *)name;
- (NSString *) name;
- (void) setRuntimeAttributes: (NSArray *)attributes;
- (NSArray *) runtimeAttributes;
@end
@interface IBUserDefinedRuntimeAttribute : NSObject <NSCoding>
{
NSString *typeIdentifier;
NSString *keyPath;
id value;
}
- (void) setTypeIdentifier: (NSString *)type;
- (NSString *) typeIdentifier;
- (void) setKeyPath: (NSString *)keyPath;
- (NSString *) keyPath;
- (void) setValue: (id)value;
- (id) value;
@end
@interface GSXibKeyedUnarchiver: NSKeyedUnarchiver
{
NSMutableDictionary *objects;