mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add a few OSX compatibility methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
377a757e54
commit
cbf54ac301
8 changed files with 111 additions and 27 deletions
|
@ -4,11 +4,15 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSArray *testObj = [NSUserDefaults new];
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSUserDefaults *defs = [NSUserDefaults new];
|
||||
|
||||
test_NSObject(@"NSUserDefaults", [NSArray arrayWithObject:testObj]);
|
||||
test_NSObject(@"NSUserDefaults", [NSArray arrayWithObject: defs]);
|
||||
|
||||
defs = [NSUserDefaults standardUserDefaults];
|
||||
[defs setDouble: (double)42.42 forKey: @"aDouble"];
|
||||
PASS(EQ((double)42.42, [defs doubleForKey: @"aDouble"]),
|
||||
"can store double");
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue