Re: Terminate app

2015-07-13 Thread Jens Alfke
I suspect it’s to make method calls curry-able. —Jens ___ 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/Unsubs

Re: Terminate app

2015-07-13 Thread Charles Srstka
On Jul 13, 2015, at 7:15 PM, Quincey Morris wrote: > > On Jul 13, 2015, at 16:55 , Charles Srstka > wrote: >> >> What’s the intended use of that, to force an instance to use a superclass’s >> implementation of some method instead of the overridden version? If

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 16:55 , Charles Srstka wrote: > > What’s the intended use of that, to force an instance to use a superclass’s > implementation of some method instead of the overridden version? If so, that > seems really open to abuse… I dunno, personally. But it was discussed in the old Sw

Re: Terminate app

2015-07-13 Thread Charles Srstka
On Jul 13, 2015, at 11:48 AM, Quincey Morris wrote: > > Note that in Swift, you can write SomeClass.instanceMethod > (instanceOfSomeClass, …) as an equivalent of > instanceOfSomeClass.instanceMethod (…), and the error message you got is > helpfully trying to show you how to do that. :) You c

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 09:48 , Quincey Morris wrote: > > NSApplication.sharedApplication.terminate(self) Sorry, I meant: > NSApplication.sharedApplication ().terminate(self) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 09:25 , Jan E. Schotsman wrote: > > NSApplication.terminate(self) // ! Cannot invoke 'terminate' with an > argument list of type '(AppDelegate)' You’re mistakenly invoking the method on the class, not on the application instance. Try: NSApplication.sharedApplicati

Terminate app

2015-07-13 Thread Jan E. Schotsman
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 li

Terminate App While NSSheet Is Visible?

2008-08-03 Thread Chunk 1978
hi there. i've noticed on some applications that it's possible to quit an app while an NSSheet is present, but i can't seem to correctly add this functionality into my own app. an example: open Safari > View > Customize Toolbar > Quit Safari. you'll notice that the sheet ends and then safari te