Re: Distributed Objects
Re: Distributed Objects
- Subject: Re: Distributed Objects
- From: Kyle Sluder <email@hidden>
- Date: Mon, 27 Aug 2012 09:17:40 -0700
On Aug 27, 2012, at 9:10 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
> On 27 Aug 2012, at 22:49, Kyle Sluder <email@hidden> wrote:
>
>> On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>>
>>>
>>> "new" is documented as "Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object."
>>
>> Except, you know, the part where -[NSConnection init] is documented to do anything useful. Why not humor me and see if it works correctly if you pass a valid send port to the designated initialiser?
>
> //NSConnection *theConnection = [[NSConnection alloc] init];
> //NSConnection *theConnection = [ NSConnection new ];
> NSPort *sendPort = [ NSPort port ];
From the documentation:
"NSPort is an abstract class…"
You almost certainly want an NSMachPort here.
--Kyle Sluder
_______________________________________________
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