Re: Distributed Objects
Re: Distributed Objects
- Subject: Re: Distributed Objects
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 27 Aug 2012 23:35:52 +0700
On 27 Aug 2012, at 23:17, Kyle Sluder <email@hidden> wrote:
> 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.
You are right. Now have:
NSMachPort *sendPort = (NSMachPort *)[ NSMachPort port ];
but still the same.
It seems that everything works as expected on 10.6.8
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