currentHost
現在のホストを返します
解説
現在のホストを返します。
返り値
( NSHost * )
ホスト
引数
フレームワーク
Foundation
クラス
NSHost
Class Methods
使用可能
10.0
参照
+ hostWithAddress:
+ hostWithName:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHost *host = [NSHost currentHost]; NSLog([NSString stringWithFormat:@"%@",[host address]]); } @end