hostWithName:
ドメイン名でホストを作って返します
+(NSHost *)hostWithName:(NSString *)name:
解説
ドメイン名でホストを作って返します。
返り値
( NSHost * )
ホスト
引数
( NSString * )name
ホスト名
フレームワーク
Foundation
クラス
NSHost
Class Methods
使用可能
10.0
参照
+ hostWithAddress:
+ setHostCacheEnabled:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHost *host = [NSHost hostWithName:@"www.oomori.com"]; [myOutlet setStringValue:[host address]]; } @end