[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arguments of +connectionWithRegisteredName:host:
From: |
Jamie Ramone |
Subject: |
Re: Arguments of +connectionWithRegisteredName:host: |
Date: |
Mon, 30 Nov 2009 22:30:04 -0300 |
If you don't want to specify the local host then the host: parameter
should be nil or an empty string (i.e. @""), from what I recall.
That's what the Apple docs say, and what I've always used.
On Mon, Nov 30, 2009 at 10:05 PM, Germán Arias <german@xelalug.org> wrote:
> When I try:
>
> [NSConnection connectionWithRegisteredName: @"Name" host: @"*"];
>
> I get:
>
> ./obj/Client: Uncaught exception NSInvalidArgumentException, reason:
> Attempt to contact a named host using a message port name server. This
> name server can only be used to contact processes owned by the same user
> on the local host (host name must be an empty string). To contact
> processes owned by other users or on other hosts you must use an
> instance of the NSSocketPortNameServer class.
>
>
> If this is true, the documentation is wrong. And a question: Why is
> necessary the argument host? the method would be
> +connectionWithRegisteredName:
>
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
--
Besos, abrazos, confeti y aplausos.
Jamie Ramone
"El Vikingo"