[Pyobjc-dev] issues with NSURL and NSWindow?
Brought to you by:
ronaldoussoren
From: James E. <ea...@ba...> - 2004-04-05 03:19:01
|
I've been doing more with PyObjC lately, and I've been having a few weird issues creep up.... The first one's probably the easiest to demonstrate: Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from Foundation import * >>> u = NSURL.alloc().initWithString('http://pyobjc.sf.net') Bus error % That's the behaviour that I get with PyObjC 1.0 and with the version checked out from CVS last night. Am I just being stupid in how I'm using NSURL, or is that a bug? Also, it appears that the NSWindow doesn't implement the -isKeyWindow and -isMainWindow methods: 'objc.native_selector' object has no attribute 'isMainWindow' That error occurs when I call MyAppController.window.isMainWindow() where MyAppController.window is an IBOutlet of type NSWindow. Any help would be greatly appreciated... I love the work that you folks are doing! Cheers, James -- I can't give you a brain, but I can give you a diploma. -- The Wizard of Oz |