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:
gcasa 2009-06-05 22:16:07 +00:00
parent 88649d248a
commit c4c9fe6097
2 changed files with 22 additions and 0 deletions

View file

@ -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
{