Re: [Pyobjc-dev] Pure Python Cocoa GUI application?
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2009-03-31 13:45:26
|
On 31 Mar, 2009, at 4:39, Orestis Markou wrote: > Hi, > > I'm a bit confused about Dock icons and applications - some times I > get the rocket icon, which I can use to force quit the app, some times > I don't get anything and I have to kill the process by getting the > PID. > > How can I get the standard application behaviour with no nibs? The most important bit is to make sure your application is in an .app bundle and has a proper main loop. That way you'll get real access to the Window Manager and an icon in the Dock. OSX wants all GUI programs to run as part of a .app bundle (ignoring CFM based Carbon apps because nobody should use those anyway), you won't get the right experience otherwise. Python hacks around that by using a Python.app bundle inside the Python framework, but that's only there as a convenience to users and shouldn't be used for packaging real applications (IMHO). Ronald |