Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSDatePicker - getting the value when it is changed

How would I get notified of a value of a NSDatePicker, when it's changed?

like image 507
nanochrome Avatar asked Dec 10 '09 05:12

nanochrome


1 Answers

I've only done it on the iPhone with UIDatePicker but it is similar on the Mac, you register as a delegate and receive messages. See Apple's Docs here.

I should clarify, this tells you when it changed, you still need to call -dateValue to get the date.

like image 96
bmalicoat Avatar answered Sep 28 '22 08:09

bmalicoat