[Pyobjc-dev] Re: Bundle loading hooks?
Brought to you by:
ronaldoussoren
From: Michael H. <mw...@py...> - 2003-09-03 11:40:57
|
Ronald Oussoren <ous...@ci...> writes: > However, if you start querying with the NSBundle +bundleForClass:, all > classes defined in Python seem to be defined in the main bundle even > if they are actually defined in another (plug-in) bundle. Simularly, > NSBundle -classNamed: will only find the class if you use the > mainBundle. This is a problem for us, because this means Interface > Builder cannot find the classes in a palette that has been defined in > Python. Did you ever get any response to this? > Does anyone know a documented way to get the administration right? I > got the IB palette working with a dirty hack: when the python plugin > it loaded it looks for the NSBundle that is associated with its bundle > and changes the 'isa' pointer of that NSBundle instance to a subclass > of NSBundle that overrides classNamed. That doesn't look like the > proper solution to me :-) I still can't get this to work :-( The palette appears, but you still get "can't find class" errors in the logs... Cheers, mwh -- ARTHUR: Why should he want to know where his towel is? FORD: Everybody should know where his towel is. ARTHUR: I think your head's come undone. -- The Hitch-Hikers Guide to the Galaxy, Episode 7 |