mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:11:15 +00:00
Add decoding of class IBInitialTabViewItemAttribute.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
757ff4b828
commit
a978e01752
3 changed files with 51 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-11-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Headers/Additions/GNUstepGUI/GSXibLoading.h,
|
||||||
|
* Source/GSXibLoader.m: Add decoding of class IBInitialTabViewItemAttribute.
|
||||||
|
|
||||||
2011-11-04 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-11-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSInfoPanel.m: Tolerate 'Authors' being a string containing
|
* Source/GSInfoPanel.m: Tolerate 'Authors' being a string containing
|
||||||
|
|
|
@ -111,6 +111,14 @@
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface IBInitialTabViewItemAttribute: NSObject
|
||||||
|
{
|
||||||
|
NSString *name;
|
||||||
|
id object;
|
||||||
|
id initialTabViewItem;
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
||||||
@interface IBObjectRecord: NSObject
|
@interface IBObjectRecord: NSObject
|
||||||
{
|
{
|
||||||
int objectID;
|
int objectID;
|
||||||
|
|
|
@ -458,6 +458,44 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@implementation IBInitialTabViewItemAttribute
|
||||||
|
|
||||||
|
- (id) initWithCoder: (NSCoder*)coder
|
||||||
|
{
|
||||||
|
if ([coder allowsKeyedCoding])
|
||||||
|
{
|
||||||
|
if ([coder containsValueForKey: @"name"])
|
||||||
|
{
|
||||||
|
name = [coder decodeObjectForKey: @"name"];
|
||||||
|
}
|
||||||
|
if ([coder containsValueForKey: @"object"])
|
||||||
|
{
|
||||||
|
ASSIGN(object, [coder decodeObjectForKey: @"object"]);
|
||||||
|
}
|
||||||
|
if ([coder containsValueForKey: @"initialTabViewItem"])
|
||||||
|
{
|
||||||
|
ASSIGN(initialTabViewItem, [coder decodeObjectForKey: @"initialTabViewItem"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[NSException raise: NSInvalidArgumentException
|
||||||
|
format: @"Can't decode %@ with %@.",NSStringFromClass([self class]),
|
||||||
|
NSStringFromClass([coder class])];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) dealloc
|
||||||
|
{
|
||||||
|
DESTROY(name);
|
||||||
|
DESTROY(object);
|
||||||
|
DESTROY(initialTabViewItem);
|
||||||
|
[super dealloc];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation IBObjectRecord
|
@implementation IBObjectRecord
|
||||||
|
|
||||||
- (id) initWithCoder: (NSCoder*)coder
|
- (id) initWithCoder: (NSCoder*)coder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue