diff --git a/ChangeLog b/ChangeLog index a791ce6e4..16ec3af36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-29 10:25-EST Gregory John Casamento + + * 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 * Source/NSPrintPanel.m: Add file type chooser (PDF, PostScript) diff --git a/Source/GNUmakefile b/Source/GNUmakefile index 77a936840..8c5048d23 100644 --- a/Source/GNUmakefile +++ b/Source/GNUmakefile @@ -183,6 +183,7 @@ NSToolbarItem.m \ NSToolbarItemGroup.m \ NSTokenField.m \ NSTokenFieldCell.m \ +NSTreeController.m \ NSUserDefaultsController.m \ NSView.m \ NSViewController.m \ @@ -239,7 +240,8 @@ GSGormLoader.m \ GSGModelLoader.m \ GSNibLoader.m \ GSXibLoader.m \ -GSHelpAttachment.m +GSXibLoading.m \ +GSHelpAttachment.m # Turn off NSMenuItem warning that NSMenuItem conforms to , # but does not implement 's methods itself (it inherits @@ -386,6 +388,7 @@ NSToolbarItem.h \ NSToolbarItemGroup.h \ NSTokenField.h \ NSTokenFieldCell.h \ +NSTreeController.h \ NSUserDefaultsController.h \ NSView.h \ NSViewController.h \ diff --git a/Source/GSXibLoading.m b/Source/GSXibLoading.m new file mode 100644 index 000000000..c04c4162b --- /dev/null +++ b/Source/GSXibLoading.m @@ -0,0 +1,94 @@ +#import +#import + +@interface IBUserDefinedRuntimeAttributesPlaceholder : NSObject +{ + 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 +@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