[Pyobjc-dev] PyObjCPoint created for NSModalSession
Brought to you by:
ronaldoussoren
From: Bob S. <rsw...@tr...> - 2003-07-03 16:06:46
|
I have the following code to display an alert while my application is doing something that the user must wait for: alertPanel = NSGetInformationalAlertPanel("Waiting", "Please wait.", None, None, None) modalSession = application.beginModalSessionForWindow_(alertPanel) while 1: .... check and break when ready application.endModalSession_(modalSession) NSReleaseAlertPanel(alertPanel) When run, this code causes these messages on the console: 2003-07-03 11:51:16.213 Goombah[1250] PyObjCPointer created: at 0x24da590 of type {_NSModalSession=@@^{_NSModalSession}iciI^vi@@:^vi} 2003-07-03 11:51:20.938 Goombah[1250] Exception raised during posting of notification. Ignored. exception: depythoning 'struct', got 'PyObjCPointer' Do I need to inform PyObjC that this is an NSModalSession struct in some way? Thanks for your help. 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. ---------------------------------- |