[Pyobjc-dev] Interesting hack, with dead end
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2009-03-29 14:01:38
|
Hi, The following blogpost hints on how IB communicates with Xcode to automaticly read IBAction and IBOutlet definitions from your source code: http://cocoawithlove.com/2009/02/interprocess-communication-snooping.html With some hacking on pyobjc-core I have a script that seems to implement the right interface, but sadly enough this doesn't actually work: IB says it has problems communicating with the script: 2009-03-29 08:45:17.238 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while unregistering target watcher. 2009-03-29 08:45:17.239 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while unregistering file watcher. 2009-03-29 08:45:17.240 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while unregistering project file watcher. 2009-03-29 08:45:17.242 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while unregistering target file watcher. 2009-03-29 08:45:17.243 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while requesting project info. 2009-03-29 08:45:17.413 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while requesting project info. 2009-03-29 08:45:17.914 Interface Builder[32180:10b] ERROR: PBXProjectWatcherServer: DO error while requesting project info. Attached are two files: ib_interface.py tries to implement the DO interface that Xcode implements for the communication with IB, read.py uses the same interface to communicate with Xcode. The read.py script works fine, both with Xcode and my script, but IB doesn't like my script (as noted above). This is just a quick hack between sessions at PyCon, but I'd love to have a working version of the script to be able to hack on simple Cocoa scripts without having to start Xcode (because I do most of code writing in vim and Xcode is basically just unwanted overhead for most of my code). Does anyone have tips on how to debug the problems I'm running into? Ronald P.S. This is obviously a very crude hack, using undocumented interfaces that could chance without notice. |