mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@519 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d3de6e9158
commit
24380e9d1b
2 changed files with 48 additions and 0 deletions
20
Testing/LoadMe.h
Normal file
20
Testing/LoadMe.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* Test Class for NSBundle.
|
||||
Copyright (C) 1993,1994,1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
Date: Jul 1995
|
||||
|
||||
This file is part of the GNU Objective C Class Library.
|
||||
|
||||
*/
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@interface LoadMe : NSObject
|
||||
{
|
||||
int var;
|
||||
}
|
||||
|
||||
- init;
|
||||
- afterLoad;
|
||||
|
||||
@end
|
28
Testing/LoadMe.m
Normal file
28
Testing/LoadMe.m
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Test Class for NSBundle.
|
||||
Copyright (C) 1993,1994,1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
Date: Jul 1995
|
||||
|
||||
This file is part of the GNU Objective C Class Library.
|
||||
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include "LoadMe.h"
|
||||
|
||||
@implementation LoadMe
|
||||
|
||||
- init
|
||||
{
|
||||
[super init];
|
||||
var = 10;
|
||||
return self;
|
||||
}
|
||||
|
||||
- afterLoad
|
||||
{
|
||||
printf("%s's instance variable is %i\n", [self name], var);
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in a new issue