• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSConnection - both ways
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSConnection - both ways
      • From: Ken Thomases <email@hidden>
References: 
 >NSConnection - both ways (From: Nava Carmon <email@hidden>)
 >Re: NSConnection - both ways (From: Ken Thomases <email@hidden>)
 >Re: NSConnection - both ways (From: Nava Carmon <email@hidden>)
 >Re: NSConnection - both ways (From: Ken Thomases <email@hidden>)

  • Prev by Date: How to remove the NSCell border in an NSTableView that hasFocus
  • Next by Date: How to set special keys for menuitems.
  • Previous by thread: Re: NSConnection - both ways
  • Next by thread: Re: NSConnection - both ways
  • Index(es):
    • Date
    • Thread