[Pyobjc-dev] Returning BOOLs to Cocoa
Brought to you by:
ronaldoussoren
From: Bob S. <rsw...@tr...> - 2003-07-22 16:31:41
|
I seem to be missing something about BOOLs returned from python members called for Cocoa delegates. :-( I implemented a Cocoa delegate for my window to support windowShouldClose_( ) since I need to do some checking of user input before I allow the window to close. However, no matter what I return, the window always closes. Originally, I just used: return 0 but I also tried: return objc.NO I added a print statement for when the code returns objc.NO and it printed: returning FALSE What is the proper value to return so that Cocoa knows I don't want it to go on? Thanks! Bob Swerdlow COO Transpose rsw...@tr... 207-781-8284 http://www.transpose.com ---------------------------------- Fight Spam! Add this link to your signature (as I did): http://wecanstopspam.org Click through to find out more. ---------------------------------- |