title: Get current location from osx/cocoa app using xcode swift 3
body: <p>I apologize for not providing it with a code. The reason I posted it with images because xcode is <strong>LLVM(low level virtual machine)</strong> compiler which has mostly <strong>UI environment</strong> especially for the <strong>configuration part</strong>. Such as creating either an outlet or action for object by dragging them to the view controller instead defining it by a code directly. Thus since it was so, I think people would easily notice my mistake faster.</p>
  
  <pre><code>import Cocoa
  import MapKit
  
  class ViewController: NSViewController, CLLocationManagerDelegate {
  
     @IBOutlet var mapView: MKMapView!
     var locManager = CLLocationManager()
     var currentLocation = CLLocation()
  
     var locationManager = CLLocationManager()
     var didFindMyLocation = false
     var strForCurLatitude = "";
     var strForCurLongitude = "";
  
     override func viewDidLoad() {
         super.viewDidLoad()
  
         let distancespan:CLLocationDegrees = 2000
         let busCScampuslocation:CLLocationCoordinate2D =  CLLocationCoordinate2DMake(currentLocation.coordinate.latitude, currentLocation.coordinate.longitude)
         mapView.setRegion(MKCoordinateRegion.init(center: bsuCScampuslocation, latitudinalMeters: distancespan, longitudinalMeters: distancespan), animated: true)
         print(currentLocation.coordinate.latitude)
     }
     ...
  }
  </code></pre>