Re: [Pyobjc-dev] Multiple Document App Template
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-01-15 00:24:20
|
On Tuesday, Jan 14, 2003, at 19:07 US/Eastern, Bob Ippolito wrote: > a method for morphing a console app started with ANY command line > into a Cocoa app, even if it's not in a bundle or has been running a > while as a console app and Cocoa wasn't linked in at the time it > started. Gave this some thought.... The trick is to do this before the ObjC runtime is touched in *any* way. Even then, we may lose-- if the NSBundle/CFBundle has been tripped by some other mechanism, we lose. So, dynamic loading works, but anything w/Foundation/Core linked in may not work-- will not work in all cases. Bummer. In any case, I really don't like hacks like this outside of the 'ooh... that's a cool hacque' context. I'm bummed that it is now in PyObjC, but it does work. b.bum |