mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7621 72102866-910b-0410-8b05-ffd578937521
25 lines
527 B
Objective-C
25 lines
527 B
Objective-C
#include <Foundation/Foundation.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
#if 0
|
|
int main ()
|
|
{
|
|
id o = [NSObject new];
|
|
printf ("Hello from object at 0x%x\n", (unsigned)[o self]);
|
|
exit (0);
|
|
}
|
|
#else
|
|
int main (int argc, char **argv)
|
|
{
|
|
NSString *string;
|
|
id pool = [NSAutoreleasePool new];
|
|
NSProcessInfo *info = [NSProcessInfo processInfo];
|
|
NSUserDefaults *defaults;
|
|
|
|
[info setProcessName: @"TestProcess"];
|
|
defaults = [NSUserDefaults standardUserDefaults];
|
|
NSLog(@"%@", [defaults dictionaryRepresentation]);
|
|
return 0;
|
|
}
|
|
#endif
|