Type Method 型メソッド

rootProxyForConnectionWithRegisteredName:host:

Returns a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under a given name on a given host. 省略時のNSPortNameServerにある与えられた名前のもとにある与えられたホスト上で登録されるNSConnectionオブジェクトのルートオブジェクトに対するプロキシを返します。

Declaration 宣言

+ (NSDistantObject *)rootProxyForConnectionWithRegisteredName:(NSString *)name 
                                                         host:(NSString *)hostName;

Parameters パラメータ

name

The name under which the connection is registered. それのもとでこの接続を登録する名前。

hostName

The host name. The domain name hostName is an Internet domain name (for example, "sales.anycorp.com"). If hostName is nil or empty, then only the local host is searched for the named NSConnection object. ホスト名。ドメイン名hostNameはインターネットドメイン名です(例えば、"sales.anycorp.com")。hostNamenilまたは空ならば、そのときローカルホストだけがこの指名されたNSConnectionオブジェクトに対して検索されます。

Return Value 戻り値

a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under name on the host named hostName, or nil if that NSConnection object has no root object set. Also returns nil if no NSConnection object can be found for name and hostName. 省略時のNSPortNameServernameのもとhostNameの名前のホスト上で登録されたNSConnectionオブジェクトのルートオブジェクトに対するプロキシ、またはnil、もしそのNSConnectionオブジェクトがまったくルートオブジェクトを設定されないならば。同様にnilを返します、もしまったくNSConnectionオブジェクトがnamehostNameに対して見つけられることができないならば。

Discussion 議論

The NSConnection object of the returned proxy is a child of the default NSConnection object for the current thread (that is, it shares the default NSConnection object's receive port). 返されるプロキシのNSConnectionオブジェクトは、現在のスレッドに対する省略時のNSConnectionオブジェクトの子です(すなわち、それは省略時のNSConnectionオブジェクトのもつ受信ポートを共有します)。

This method invokes connectionWithRegisteredName:host: and sends the resulting NSConnection object a rootProxy message. このメソッドは、connectionWithRegisteredName:host:を発動します、そして結果のNSConnectionオブジェクトにrootProxyメッセージを送ります。

See Also 参照

Getting a Remote Object リモートオブジェクトを取得する

Related Documentation 関連文書