mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
Convert all NSColor subclasses to it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2698 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
391f9cec43
commit
9543e0213e
1 changed files with 9 additions and 2 deletions
|
@ -115,6 +115,12 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
|
||||
|
||||
@implementation NSBox (GMArchiverMethods)
|
||||
+ (id)createObjectForModelUnarchiver:(GMUnarchiver*)unarchiver
|
||||
{
|
||||
NSLog (@"creating NSBox");
|
||||
return [self alloc];
|
||||
}
|
||||
|
||||
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||
{
|
||||
[super encodeWithModelArchiver:archiver];
|
||||
|
@ -328,6 +334,7 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
else if ([colorSpaceName isEqual:@"NSNamedColorSpace"]) {
|
||||
NSAssert (0, @"Named color spaces not supported yet!");
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id)initWithModelUnarchiver:(GMUnarchiver*)unarchiver
|
||||
|
@ -337,8 +344,7 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
|
||||
- (Class)classForModelArchiver
|
||||
{
|
||||
// return [NSColor class];
|
||||
return isa;
|
||||
return [NSColor class];
|
||||
}
|
||||
|
||||
@end /* NSColor (GMArchiverMethods) */
|
||||
|
@ -712,6 +718,7 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
NSView* view = [[[self allocWithZone:[unarchiver objectZone]]
|
||||
initWithFrame:rect]
|
||||
autorelease];
|
||||
NSLog (@"created view %@", view);
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue