[Pythonmac-SIG] [May be OT] A question about creating a nib (cocoa specific)

whamoo whamoo at rknet.it
Wed Jan 5 12:52:27 CET 2005


On 05/gen/05, at 12:46, Ronald Oussoren wrote:
>>
>> When I create application with cocoa and python, also using the 
>> tutorial on the pyobjc site, when i it cmd-w or click on the reb x 
>> button my application disappear but don't quit, the most of macosx 
>> application like itunes, ical, ecc... when you click on the dock icon 
>> redisplay the graphics interface, my app doesn't...
>
> That's a generic Cocoa question.
>
> To close the application when your main window is closed you should 
> implement a windowWillClose_ method that exists the application.
>
> If you implement a document-based application the application will 
> automaticly open a new window when no windows are open and you click 
> on the dock icon for the application. There is probably a callback 
> that will be called when someone clicks on the document icon (probably 
> a delegate method for NSApplication).

Ok, but in wich way I can implement a document based application 
starting by interface builder?
Creating a new subclass of NSDocument, instantiate it, add outlet, 
action, creating code, but the problem don't solve =P

Whamoo www.rknet.it
Powered by:
- MacOsX
- Gnu / Linux Debian Sarge
- Amiga Os 3.9
- Milk



More information about the Pythonmac-SIG mailing list