mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Apply modified patch to support windows native event handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
657e38c038
commit
813f640a49
24 changed files with 2735 additions and 1640 deletions
|
@ -10,6 +10,7 @@ id myServer;
|
|||
+ (void) setServer: (id)anObject;
|
||||
+ (void) startup;
|
||||
- (int) doIt;
|
||||
- (void) testPerform: (id)anObject;
|
||||
@end
|
||||
|
||||
@implementation Tester
|
||||
|
@ -26,6 +27,10 @@ id myServer;
|
|||
sendPort: [portArray objectAtIndex: 1]];
|
||||
|
||||
serverObject = [[self alloc] init];
|
||||
[serverObject performSelectorOnMainThread: @selector(testPerform:)
|
||||
withObject: @"84"
|
||||
waitUntilDone: NO];
|
||||
|
||||
[(id)[serverConnection rootProxy] setServer: serverObject];
|
||||
[serverObject release];
|
||||
|
||||
|
@ -70,6 +75,12 @@ id myServer;
|
|||
{
|
||||
return 42;
|
||||
}
|
||||
|
||||
- (void) testPerform: (id)anObject
|
||||
{
|
||||
NSLog(@"Test perform: %@", anObject);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
int
|
||||
|
@ -82,7 +93,6 @@ main(int argc, char *argv[], char **env)
|
|||
#endif
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
|
||||
[Tester startup];
|
||||
[[NSRunLoop currentRunLoop] run];
|
||||
[pool release];
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSFileHandle.h>
|
||||
#include <Foundation/NSManager.h>
|
||||
#include <Foundation/NSData.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSURL.h>
|
||||
#include <assert.h>
|
||||
|
||||
int
|
||||
|
@ -26,7 +28,7 @@ main ()
|
|||
assert(dst != nil);
|
||||
|
||||
d0 = [[src readDataToEndOfFile] retain];
|
||||
[dst writeData:d0];
|
||||
[(NSFileHandle*)dst writeData: d0];
|
||||
[src release];
|
||||
[dst release];
|
||||
[pool release];
|
||||
|
@ -44,5 +46,11 @@ main ()
|
|||
else
|
||||
printf("Test failed\n");
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
src = [NSURL URLWithString: @"http://www.w3.org/index.html"];
|
||||
d0 = [src resourceDataUsingCache: NO];
|
||||
NSLog(@"Data is %@", d0);
|
||||
[pool release];
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue