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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to