2000-09-22 13:45:58 +00:00
|
|
|
#include <Foundation/Foundation.h>
|
1996-05-28 18:33:00 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2000-09-22 13:45:58 +00:00
|
|
|
|
2001-04-10 03:27:01 +00:00
|
|
|
#if 1
|
1996-05-28 18:33:00 +00:00
|
|
|
int main ()
|
|
|
|
{
|
2001-04-10 03:27:01 +00:00
|
|
|
id pool = [NSAutoreleasePool new];
|
1996-05-28 18:33:00 +00:00
|
|
|
id o = [NSObject new];
|
|
|
|
printf ("Hello from object at 0x%x\n", (unsigned)[o self]);
|
|
|
|
exit (0);
|
|
|
|
}
|
2000-09-20 13:48:49 +00:00
|
|
|
#else
|
|
|
|
int main (int argc, char **argv)
|
|
|
|
{
|
2000-09-22 13:45:58 +00:00
|
|
|
NSString *string;
|
|
|
|
id pool = [NSAutoreleasePool new];
|
2000-09-27 15:26:16 +00:00
|
|
|
NSProcessInfo *info = [NSProcessInfo processInfo];
|
|
|
|
NSUserDefaults *defaults;
|
|
|
|
|
2001-04-05 12:42:28 +00:00
|
|
|
NSLog(@"Temporary directory - %@", NSTemporaryDirectory());
|
2000-09-27 15:26:16 +00:00
|
|
|
[info setProcessName: @"TestProcess"];
|
|
|
|
defaults = [NSUserDefaults standardUserDefaults];
|
|
|
|
NSLog(@"%@", [defaults dictionaryRepresentation]);
|
2000-09-22 13:45:58 +00:00
|
|
|
return 0;
|
2000-09-20 13:48:49 +00:00
|
|
|
}
|
|
|
|
#endif
|