Terminate app
Terminate app
- Subject: Terminate app
- From: "Jan E. Schotsman" <email@hidden>
- Date: Mon, 13 Jul 2015 18:25:56 +0200
Hello,
How can I terminate my app from the delegate in Swift?
I tried this:
NSApplication.terminate(self) // ! Cannot invoke 'terminate' with an
argument list of type '(AppDelegate)'
I've tried some variants but all of them error.
I suppose I could just use nil for the argument but I'd like to know
how I can pass the sender if I need to?
Jan E.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden