On Nov 28, 2005, at 3:55 PM, John Ruff wrote:
> Anyone successfully used
> 'applicationShouldTerminateAfterLastWindowClosed' in their app. If
> so, how? Can you provide a example? I've used it returning YES
> (which was imported from objc) but seems not work.
> def applicationShouldTerminateAfterLastWindowClosed(self):
> return YES
There is no applicationShouldTerminateAfterLastWindowClosed
selector. There is an
applicationShouldTerminateAfterLastWindowClosed: selector though. If
you implement that, it will work. Don't bother with YES, NO, or nil;
Python's True, False, and None are idiomatic.
def applicationShouldTerminateAfterLastWindowClosed_(self, sender):