Re: NSConnection - both ways
Re: NSConnection - both ways
- Subject: Re: NSConnection - both ways
- From: Ken Thomases <email@hidden>
- Date: Thu, 16 Jun 2011 09:44:15 -0500
On Jun 16, 2011, at 9:29 AM, Nava Carmon wrote:
> 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
Have you logged this, both the pointer value (%p) and description (%@) of the client proxy? While you're at it, log self.
> }
>
> // somewhere in the code after registration
>
> ...
> [self.remoteClient foo];
Is this actual code or just example code? Is the method really -foo?
Are you sure this is after the registration? Are you sure it's the same self as above? Have you logged self and self.remoteClient?
Were any errors written to the console? If the receiver (self.remoteClient) is not nil, then _something_ is done when you send that message.
Regards,
Ken
_______________________________________________
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