Search code examples
swift3nsapplication

Why is applicationDidFinishLaunching not being called?


Today Apple came with a new Swift (again). After endless syntax changes I managed to compile (I needed to get rid of xcstate as well as it kept throwing nonsense error messages). But now my applicationDidFinishLaunching is no longer being called.


Solution

  • It turns out that you need to change it to

    func applicationDidFinishLaunching(_ aNotification: Notification) 
    

    Probably I'm the only one using that method :-/