[Pyobjc-dev] Re: interface builder queries
Brought to you by:
ronaldoussoren
From: Michael H. <mw...@py...> - 2003-08-29 09:51:20
|
Michael Hudson <mw...@py...> writes: > Michael Hudson <mw...@py...> writes: > >>> Python should also work, as long as IB is single threaded, see the >>> EnvironmentPrefs example for a python based plugin. That's a plugin >>> for System Preferences, but the mechanics should be simular for IB >>> pallettes. >> >> Right, I'll see if I can blend an IBPalette example with the PyObjC >> screensaver example. I'll try to package it up for the Examples/ >> directory if I come up with anything useful. > > Well, after fixing what I think to be a couple of bugs in PyObjC, I've > run into another problem. I think. > > It seems interface builder uses [NSBundle classNamed:] to find the > palette class, and my Python classes aren't showing up to this > function (it shows up as the result to [NSBundle principalClass], > though). This would seem to be because the objc runtime thinks that Python classes are not dynamically loaded (fair enough, but it makes the task at hand fairly tricky). It is odd that you have NSBundle.bundleForClass(aBundle.principalClass()) != aBundle though. Still way over my depth, mwh -- If i don't understand lisp, it would be wise to not bray about how lisp is stupid or otherwise criticize, because my stupidity would be archived and open for all in the know to see. -- Xah, comp.lang.lisp |