Re: NSConnection - both ways
Re: NSConnection - both ways
- Subject: Re: NSConnection - both ways
- From: Nava Carmon <email@hidden>
- Date: Thu, 16 Jun 2011 17:29:38 +0300
I call from client [self.remoteObject registerClient:self];
Then in the server in function
- (void) registerClient:(id)objectProxy
{
self.remoteClient = objectProxy; // remoteClient is defined as retained property
}
// somewhere in the code after registration
...
[self.remoteClient foo];
...
// In the client
- (void) foo
{
NSLog(@"%@", @"foo was called");
}
foo wasn't called.
On Jun 16, 2011, at 4:20 PM, Ken Thomases wrote:
> On Jun 16, 2011, at 7:26 AM, Nava Carmon wrote:
>
>> I tried to pass my client object as is but it didn't work for some reason.
>
> Didn't work in what way? What exactly did you try? What results did you expect, what results did you actually get, and how did they differ?
>
>> Should I wrap it somehow?
>
> Shouldn't be necessary.
>
> Regards,
> Ken
>
Nava Carmon
email@hidden
"Think good and it will be good!"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden