mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Incorporated patch by David Chisnall.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28326 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f6aa65817a
commit
a4996f8d05
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-06-05 18:12-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSDistantObject.m: NSProxy subclasses must override -init
|
||||
or an exception will be thrown. This change calls the forwarding
|
||||
mechanism to invoke -init on the remote object.
|
||||
Patch by David Chisnall <theraven@sucs.org>
|
||||
|
||||
2009-06-04 Georg Fleischmann <G.Fleischmann@vhf.de>
|
||||
|
||||
* Source/Additions/unicode/nextstep.h: Fixups for encoding mapping.
|
||||
|
|
|
@ -443,6 +443,21 @@ enum proxyLocation
|
|||
{
|
||||
return _connection;
|
||||
}
|
||||
/**
|
||||
* NSProxy subclasses must override -init or an exception will be thrown. This
|
||||
* calls the forwarding mechanism to invoke -init on the remote object.
|
||||
*/
|
||||
- (id)init
|
||||
{
|
||||
NSMethodSignature *sig = [self methodSignatureForSelector: _cmd];
|
||||
NSInvocation *inv = [NSInvocation invocationWithMethodSignature: sig];
|
||||
id ret;
|
||||
[inv setTarget: self];
|
||||
[inv setSelector: _cmd];
|
||||
[self forwardInvocation: inv];
|
||||
[inv getReturnValue: &ret];
|
||||
return ret;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue