mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
88649d248a
commit
c4c9fe6097
2 changed files with 22 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue