[Pyobjc-dev] Real case for using PyObjC bundles
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-11-07 11:52:32
|
Hi, I'm working on a PyObjC app that should make use of plugins, which need to be configurable, so they need to have NIB files, too. It's pretty dynamic, but you can see a static screenshot of it here: http://python.net/~gherman/UnreleasedStuff.html (the one with the blue background). There's also a poor quality Quicktime movie: http://python.net/~gherman/tmp/Konglomerator002.mov Has anybody made some experience using such bundles with PyObjC? The issues, as I mentioned previously, are basically to load the NIB and instantiate some instance of a controller/owner class to handle it. The bundles could be considered documents in a document-based app, but with additional specific NIB files for their configuration. I expect the usual ObjC approach using NSBundle's principleClass me- thod not to be working in PyObjC directly and wonder what the best approach would be for doing this? I've sort of tried using the PyObjC tool PyObjCTools.NibClassBuilder.extractClasses() but maybe not sys- tematically enough yet to succeed. Any help to solve this is much appreciated, because you can do very very nice stuff which is just not configurable, yet. There is also a potential for running the same code in "screensaver mode", but that is secondary to me... Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... "I'll let you be in my dream if I can be in yours." (Bob Dylan) |