Re: [Pyobjc-dev] applicationShouldOpenUntitledFile_
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-02-03 07:19:52
|
Argh, I think I'm going mad... Did anyone else try this? One other thing that may make a difference: I've build my python 2.3 (framework install) with 'OPT=-O3 -mcpu=604 -faltivec -prebind -g'. Ronald On Monday, Feb 3, 2003, at 00:09 Europe/Amsterdam, bb...@ma... wrote: > 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 > > |