+ serviceConnectionWithName:rootObject:usingNameServer:
+ serviceConnectionWithName:rootObject:
- registerName:withNameServer:
rootObject
Availability 有効性
Technology
- (BOOL)registerName:(NSString
*)name;
name
The name under which to register the receiver. それのもとこのレシーバを登録することになる名前。
YES
if the operation was successful, otherwise NO
(for example, if another NSConnection
object on the same host is already registered under name
).
YES
、もし演算が成功であるならば、そうでなければNO
(例えば、別のNSConnection
オブジェクトが同じホスト上で既にname
のもと登録されるならば)。
This method connects the receive port of the receiving NSConnection
object with the specified service name. It registers the name using the port name server returned by the system
method of NSPort
. If the operation is successful, other NSConnection
objects can contact the receiver using the connection
and root
class methods.
このメソッドは、受け取っているNSConnection
オブジェクトの受信ポートにこの指定されたサービス名で接続します。それはこの名前をNSPort
のsystem
メソッドによって返されるポート名サーバを使って登録します。演算が成功するならば、他のNSConnection
オブジェクトはレシーバにconnection
とroot
クラスメソッドを使って連絡します。
If the receiver was already registered under a name and this method returns NO
, the old name remains in effect. If this method is successful, it also unregisters the old name.
レシーバが既にある名前のもと登録されたそしてこのメソッドがNO
を返すならば、古い名前は有効なままです。このメソッドが成功するならば、それはまた古い名前を登録解除します。
To unregister an NSConnection
object, simply invoke register
and supply nil
as the connection name. Unregistering is currently only supported for NSSocket
-based connections.
NSConnection
オブジェクトを登録解除するには、単純にregister
を発動してnil
を接続名として提供してください。登録解除は、現在NSSocket
基盤の接続に対してサポートされるだけです。
+ serviceConnectionWithName:rootObject:usingNameServer:
+ serviceConnectionWithName:rootObject:
- registerName:withNameServer:
rootObject
+ systemDefaultPortNameServer
NSPortNameServer
for the application.
アプリケーションに対するNSPortNameServer
の単一のインスタンスを返します。