OVH Cloud OVH Cloud

[Cocoa] Primary window d'un document ?

1 réponse
Avatar
testuz73
Bonjour,

Dans "Document-Based Applications, Window Closing Behaviour", Apple nous
dit :

"When a primary window of a document is closed, the document is also
closed, as are any secondary document windows. The document's windows,
the document's window controllers, and the document itself are
released."

Comment on définit cette primary window ? Y a-t-il une méthode ? Ou le
fait-on soit même dans -windowWillClose: ?

--
Frédéric Testuz
<mailto:testuz73@SANSPUBperso.ch>

1 réponse

Avatar
testuz73
Frédéric Testuz wrote:

Comment on définit cette primary window ? Y a-t-il une méthode ? Ou le
fait-on soit même dans -windowWillClose: ?


Je me réponds à moi même. Je pense que j'ai trouvé, c'est par la méthode
setShouldCloseDocument: de NSWindowController.

--
Frédéric Testuz
<mailto: