[Pythonmac-SIG] Knock me over with a spoon! [was: getting at the XML in nib files]
Steven Majewski
sdm7g@Virginia.EDU
Thu, 17 Jan 2002 18:36:56 -0500 (EST)
On Thu, 17 Jan 2002, Steven Majewski wrote:
>
> - (void) nibInstantiateWithOwner: (id) topLevelObjects: (id);
> - (void) nibInstantiateWithOwner: (id);
Knock me over with a spoon, but when I did:
>>> app = rt.NSApplication.sharedApplication()
>>> app
<Objective-C `NSApplication' instance at 27ba40>
>>> o ## <-- this is the previously loaded objects.nib
<Objective-C `NSIBObjectData' instance at 27b0e0>
>>> o.nibInstantiateWithOwner_
<Objective-C method `<NSInvocation[0xfaf590] selector:
nibInstantiateWithOwner: signature: NSMethodSignature: types=v@:@ nargs=3
sizeOfParams=160 returnValueLength=0; >' on <NSIBObjectData: 0x27b0e0> at
fafe50>
>>> o.nibInstantiateWithOwner_( app )
2002-01-17 18:30:14.247 python2.1[419] Unknown class `Foo' in nib file,
using `NSObject' instead.
2002-01-17 18:30:14.252 python2.1[419] Could not connect the action seed:
to target of class NSObject
2002-01-17 18:30:14.261 python2.1[419] Could not connect the action
generate: to target of class NSObject
And the window popped up on the screen -- non functioning because this
was a nib from Random.App in Aaron Hillegass's book, and, as you can
see from the messages above, the targets in the nibs didn't match up
with any of the classes in Python.
-- Steve