1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#import "ObjectTesting.h"
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSDictionary.h>
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSMutableDictionary *testObj;
testObj = [NSMutableDictionary dictionary];
test_NSObject(@"NSMutableDictionary", [NSArray arrayWithObject:testObj]);
test_NSCoding([NSArray arrayWithObject:testObj]);
test_keyed_NSCoding([NSArray arrayWithObject:testObj]);
test_NSCopying(@"NSDictionary",@"NSMutableDictionary",
[NSArray arrayWithObject:testObj], NO, NO);
test_NSMutableCopying(@"NSDictionary",@"NSMutableDictionary",
[NSArray arrayWithObject:testObj]);
[arp release]; arp = nil;
return 0;
}
|