mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:11:15 +00:00
* Source/GNUmakefile: Add GSXibLoading.m file to GNUmakefile.
* Source/GSXibLoading.m: Add some classes which I found are relevant to Xib loading: IBAccessibilityAttribute, IBUserDefinedRuntimeAttributesPlaceholder. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34846 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bbe27f75ea
commit
43f24f6160
3 changed files with 105 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2012-02-29 10:25-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/GNUmakefile: Add GSXibLoading.m file to GNUmakefile.
|
||||||
|
* Source/GSXibLoading.m: Add some classes which I found
|
||||||
|
are relevant to Xib loading: IBAccessibilityAttribute,
|
||||||
|
IBUserDefinedRuntimeAttributesPlaceholder.
|
||||||
|
|
||||||
2012-02-28 Eric Wasylishen <ewasylishen@gmail.com>
|
2012-02-28 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSPrintPanel.m: Add file type chooser (PDF, PostScript)
|
* Source/NSPrintPanel.m: Add file type chooser (PDF, PostScript)
|
||||||
|
|
|
@ -183,6 +183,7 @@ NSToolbarItem.m \
|
||||||
NSToolbarItemGroup.m \
|
NSToolbarItemGroup.m \
|
||||||
NSTokenField.m \
|
NSTokenField.m \
|
||||||
NSTokenFieldCell.m \
|
NSTokenFieldCell.m \
|
||||||
|
NSTreeController.m \
|
||||||
NSUserDefaultsController.m \
|
NSUserDefaultsController.m \
|
||||||
NSView.m \
|
NSView.m \
|
||||||
NSViewController.m \
|
NSViewController.m \
|
||||||
|
@ -239,6 +240,7 @@ GSGormLoader.m \
|
||||||
GSGModelLoader.m \
|
GSGModelLoader.m \
|
||||||
GSNibLoader.m \
|
GSNibLoader.m \
|
||||||
GSXibLoader.m \
|
GSXibLoader.m \
|
||||||
|
GSXibLoading.m \
|
||||||
GSHelpAttachment.m
|
GSHelpAttachment.m
|
||||||
|
|
||||||
# Turn off NSMenuItem warning that NSMenuItem conforms to <NSObject>,
|
# Turn off NSMenuItem warning that NSMenuItem conforms to <NSObject>,
|
||||||
|
@ -386,6 +388,7 @@ NSToolbarItem.h \
|
||||||
NSToolbarItemGroup.h \
|
NSToolbarItemGroup.h \
|
||||||
NSTokenField.h \
|
NSTokenField.h \
|
||||||
NSTokenFieldCell.h \
|
NSTokenFieldCell.h \
|
||||||
|
NSTreeController.h \
|
||||||
NSUserDefaultsController.h \
|
NSUserDefaultsController.h \
|
||||||
NSView.h \
|
NSView.h \
|
||||||
NSViewController.h \
|
NSViewController.h \
|
||||||
|
|
94
Source/GSXibLoading.m
Normal file
94
Source/GSXibLoading.m
Normal file
|
@ -0,0 +1,94 @@
|
||||||
|
#import <Foundation/NSObject.h>
|
||||||
|
#import <Foundation/NSKeyedArchiver.h>
|
||||||
|
|
||||||
|
@interface IBUserDefinedRuntimeAttributesPlaceholder : 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 IBAccessibilityAttribute : NSObject <NSCoding>
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation IBUserDefinedRuntimeAttributesPlaceholder
|
||||||
|
|
||||||
|
- (void) encodeWithCoder: (NSCoder *)coder
|
||||||
|
{
|
||||||
|
if([coder allowsKeyedCoding])
|
||||||
|
{
|
||||||
|
[coder encodeObject: typeIdentifier
|
||||||
|
forKey: @"typeIdentifier"];
|
||||||
|
[coder encodeObject: keyPath
|
||||||
|
forKey: @"keyPath"];
|
||||||
|
[coder encodeObject: value
|
||||||
|
forKey: @"value"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) initWithCoder: (NSCoder *)coder
|
||||||
|
{
|
||||||
|
if([coder allowsKeyedCoding])
|
||||||
|
{
|
||||||
|
[self setTypeIdentifier: [coder decodeObjectForKey: @"typeIdentifier"]];
|
||||||
|
[self setKeyPath: [coder decodeObjectForKey: @"keyPath"]];
|
||||||
|
[self setValue: [coder decodeObjectForKey: @"value"]];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setTypeIdentifier: (NSString *)type
|
||||||
|
{
|
||||||
|
ASSIGN(typeIdentifier, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) typeIdentifier
|
||||||
|
{
|
||||||
|
return typeIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setKeyPath: (NSString *)kpath
|
||||||
|
{
|
||||||
|
ASSIGN(keyPath, kpath);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) keyPath
|
||||||
|
{
|
||||||
|
return keyPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setValue: (id)val
|
||||||
|
{
|
||||||
|
ASSIGN(value, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) value
|
||||||
|
{
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation IBAccessibilityAttribute
|
||||||
|
|
||||||
|
- (void) encodeWithCoder: (NSCoder *)coder
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) initWithCoder: (NSCoder *)coder
|
||||||
|
{
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
Loading…
Add table
Add a link
Reference in a new issue