Re: [Pyobjc-dev] applicationShouldOpenUntitledFile_
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-02-02 23:09:59
|
On Sunday, Feb 2, 2003, at 17:14 US/Eastern, Just van Rossum wrote: > I tried and ideed it works now. However, I must return None from > applicationShouldOpenUntitledFile_ for it to work: 0, False and NO seem > to be evaluated as YES. Odd. If I return 'None', the app crashes with: Traceback (most recent call last): File "/tmp/bbum-products/asdfasdfasdfadf.app/Contents/Resources/ __main__.py", line 20, in ? sys.exit(AppKit.NSApplicationMain(sys.argv)) TypeError: applicationShouldOpenUntitledFile:: Cannot encode return value: a string or an integer NO/0 cause it to bring up the stupid untitled window. b.bum |