mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-06 22:50:44 +00:00
19 lines
340 B
Mathematica
19 lines
340 B
Mathematica
|
#include <foundation/NSArchiver.h>
|
||
|
#include <foundation/NSArray.h>
|
||
|
#include <foundation/NSString.h>
|
||
|
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
id a = [NSArray arrayWithObjects:
|
||
|
[NSObject class],
|
||
|
[NSArray class],
|
||
|
nil];
|
||
|
[NSArchiver archiveRootObject:a toFile:@"./nsarchiving.data"];
|
||
|
[a release];
|
||
|
|
||
|
/* NSUnarchiver not available yet. */
|
||
|
|
||
|
exit (0);
|
||
|
}
|