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
オブジェクトのルートオブジェクトに対するプロキシを返します。
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"
)。hostName
がnil
または空ならば、そのときローカルホストだけがこの指名された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
.
省略時のNSPortNameServer
にname
のもとhostName
の名前のホスト上で登録されたNSConnection
オブジェクトのルートオブジェクトに対するプロキシ、またはnil
、もしそのNSConnection
オブジェクトがまったくルートオブジェクトを設定されないならば。同様にnil
を返します、もしまったくNSConnection
オブジェクトがname
とhostName
に対して見つけられることができないならば。
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
リモートオブジェクトを取得する
+ connectionWithRegisteredName:host:
Returns the NSConnection
object whose send port links it to the NSConnection
object registered with the default NSPortNameServer
under a given name on a given host.
NSConnection
オブジェクトを返します、それの送信ポートはそれをNSConnection
オブジェクトで、省略時のNSPortNameServer
に対してある与えられたホスト上である与えられた名前のもとに登録されるものと連結します。
Deprecated
非推奨
+ connectionWithRegisteredName:host:usingNameServer:
Returns the NSConnection
object whose send port links it to the NSConnection
object registered under a given name with a given server on a given host.
NSConnection
オブジェクトを返します、それの送信ポートはそれをNSConnection
オブジェクトで、ある与えられた名前のもとにある与えられたサーバとある与えられたホスト上で登録されるものと連結します。
Deprecated
非推奨
rootProxy
The proxy for the root object of the receiver’s peer in another application or thread.
別のアプリケーションまたはスレッドの中の、このレシーバの持つピアのルートオブジェクトに対するプロキシ。
Deprecated
非推奨
remoteObjects
The local proxies for remote objects that have been received over the connection but not deallocated yet.
接続越しに受信されたがまだデアロケートされないリモートオブジェクトに対するローカルプロキシ。
Deprecated
非推奨
localObjects
The local objects that have been sent over the connection and still have proxies at the other end.
接続越しに送られたそしてまだ他の終端でプロキシを持つローカルオブジェクト。
Deprecated
非推奨
Related Documentation
関連文書
rootObject
The object that the receiver (or its parent) makes available to other applications or threads.
レシーバ(またはそれの親)が他のアプリケーションやスレッドに利用可能にするオブジェクト。