// // AppDelegate.m // Atelier // // Created by MCN on 14/11/2020. // #import "AppDelegate.h" @implementation AppDelegate @synthesize monMCNconnectExt; // ====================================================================================================== // - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application // L'accès à l'interface est rendu possible grâce à l'IBOutlet sur une instance de MCNconnecteur // (ici 'monMCNconnecExt'), posé dans le fichier entête // Init du NSTextField MCNconnecteur monMCNconnectExt.ptrTexteMCNconnec.cell.stringValue = @"Initialisation du 'TextF MCNconnecteur' par appDidFinishLaunch()"; // Init du Label MCNconnecteur monMCNconnectExt.ptrLabelMCNconnec.cell.stringValue = @"Initialisation du 'Label MCNconnecteur' par appDidFinishLaunch()"; // Init du Label2 MCNconnecteur monMCNconnectExt.ptrLabelMCNconnec2.cell.stringValue = @"Initialisation du 'Label2 MCNconnecteur' par appDidFinishLaunch()"; // MàJ des 3 zones de texte par message // désactivée ici mais OK //[monMCNconnectExt mettreAjourParCode]; // Vérification du passage du code par AppDelegate et ses méthodes NSLog(@"\napplicationDidFinishLaunching() parcourue"); } // ====================================================================================================== // - (void)applicationWillTerminate:(NSNotification *)aNotification { // Insert code here to tear down your application // KO KO NSLog(@"\nApplication Terminée"); } @end