initWithDomain:type:name:
ドメイン名、タイプ、サービス名でネットサービスオブジェクトを初期化して返します
-(id)initWithDomain:(NSString *)domain: type:(NSString *)type: name:(NSString *)name:
解説
ドメイン名、タイプ、サービス名でネットサービスオブジェクトを初期化して返します。
返り値
( id )
オブジェクト()
引数
( NSString * )domain
ドメイン
( NSString * )type
タイプ
( NSString * )name
名前
フレームワーク
Foundation
クラス
NSNetService
Instance Methods
使用可能
10.2
参照
-initWithDomain:type:name:port:
例文
//ネットサービスをつくる NSNetService *nService = [[NSNetService alloc] initWithDomain:@"www.oomori.com." type:@"_http._tcp." name:@"nService" ];