• 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: Distributed Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects


  • Subject: Re: Distributed Objects
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 27 Aug 2012 22:23:32 +0700

On 27 Aug 2012, at 22:02, Kyle Sluder <email@hidden> wrote:

> On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
>> When I set up my server like:
>>    NSConnection *theConnection = [[NSConnection alloc] init];
>
> Also, the designated initializer for NSConnection is
> -initWithReceivePort:sendPort:. I have no idea what behavior -init has.

The documentation says about "Vending an Object":
NSConnection *theConnection = [NSConnection defaultConnection];
[theConnection setRootObject:serverObject];
[theConnection registerName:@"server"];

defaultConnection is deprecated an should be replaced by "new".
"(Deprecated in OS X v10.6. Use [NSConnection new] to create a unique connection instead.)"

"new" is documented as "Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object."

So I seem to follow all rules correctly.
More: this was working before (but I do not know, when it stopped working). Lion seems to have the same problems.

Gerriet


_______________________________________________

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: Distributed Objects
      • From: Kyle Sluder <email@hidden>
References: 
 >Distributed Objects (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Distributed Objects (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Distributed Objects
  • Next by Date: Re: Distributed Objects
  • Previous by thread: Re: Distributed Objects
  • Next by thread: Re: Distributed Objects
  • Index(es):
    • Date
    • Thread