macOS apps can now use @NSApplicationMain
Less than 1 minute
macOS apps can now use @NSApplicationMain 관련
HACKING WITH SWIFT
What's new in Swift?
macOS apps can now use @NSApplicationMain | Changes in Swift 1.1
macOS apps can now use @NSApplicationMain
Available from Swift 1.1
iOS apps have a @UIApplicationMain
attribute that automatically generates a UIApplicationMain()
func to bootstrap the app. This is now also available to macOS developers using @NSApplicationMain
, and this attribute will automatically be added to Cocoa app delegates in all new projects.