+ serviceConnectionWithName:rootObject:usingNameServer:
+ serviceConnectionWithName:rootObject:
- registerName:
rootObject
Availability 有効性
Technology
- (BOOL)registerName:(NSString
*)name
withNameServer:(NSPortNameServer
*)server;
name
The name under which to register the receiver. それのもとこのレシーバを登録することになる名前。
server
The name server. ネームサーバー。
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. If the operation is successful, other NSConnection
objects can contact the receiver using the connection
and root
class methods.
このメソッドは、受け取っているNSConnection
オブジェクトの受信ポートにこの指定されたサービス名で接続します。演算が成功するならば、他の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.
NSConnection
オブジェクトを登録解除するには、単純にregister
を発動してnil
を接続名として提供してください。
+ serviceConnectionWithName:rootObject:usingNameServer:
+ serviceConnectionWithName:rootObject:
- registerName:
rootObject