date
現在の日付と時間でNSDateを作って返します
解説
現在の日付と時間でNSDateを作って返します。
返り値
( id )
日付
引数
フレームワーク
Foundation
クラス
NSDate
Class Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDate *theDate; theDate = [NSDate date]; [myOutlet setStringValue:[theDate description]]; } @end