On 27 Aug 2012, at 23:17, Kyle Sluder <k...@ksluder.com> wrote:

> On Aug 27, 2012, at 9:10 AM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> 
> wrote:
> 
>> 
>> On 27 Aug 2012, at 22:49, Kyle Sluder <k...@ksluder.com> wrote:
>> 
>>> On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> 
>>> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to