Date Picker Now. Cocoa-OSX Swift -


how can make date picker show date , time now? without clicking nothing, @ beginning. new in cocoa, appreciate orientation.

this have done:
- create new project > osx > application > cocoa application
- main.storyboard. drag date picker
- ctrl + drag date picker viewcontroller.swift. give name datepicker: @iboutlet weak var datepicker: nsdatepicker!

add [datepicker setdatevalue:[nsdate new]]; in viewdidload of view controller


Comments