Type Method
型メソッド
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
に対してある与えられたホスト上である与えられた名前のもとに登録されるものと連結します。
Declaration
宣言
+ (instancetype)connectionWithRegisteredName:(NSString
*)name
host:(NSString
*)hostName;
Parameters
パラメータ
name
The name of an NSConnection
object.
NSConnection
オブジェクトの名前。
hostName
The name of the host. 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
戻り値
The NSConnection
object whose send port links it to the NSConnection
object registered with the default NSPortNameServer
under name
on the host named hostName
. Returns nil
if no NSConnection
object can be found for name
and hostName
.
NSConnection
オブジェクト、それの送信ポートはそれを、省略時のNSPortNameServer
にname
のもとhostName
と名前をつけられるホスト上で登録されるNSConnection
オブジェクトに連結します。nil
を返します、もしまったくNSConnection
オブジェクトがname
とhostName
に対して見つけられることができないならば。
The returned NSConnection
object 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
オブジェクトのもつ受信ポートを共有します)。
Discussion
議論
To get the object vended by the NSConnection
object, use the rootProxy
instance method. The rootProxyForConnectionWithRegisteredName:host:
class method immediately returns this object.
NSConnection
オブジェクトによって販売されるオブジェクトを取得するには、rootProxy
インスタンスメソッドを使ってください。rootProxyForConnectionWithRegisteredName:host:
クラスメソッドはこのオブジェクトを直ぐに返します。
See Also
参照
Getting a Remote Object
リモートオブジェクトを取得する
+ 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
非推奨
+ 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
オブジェクトのルートオブジェクトに対するプロキシを返します。
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
関連文書
+ defaultConnection
Returns the default NSConnection
object for the current thread.
現在のスレッドに対する省略時のNSConnection
オブジェクトを返します。