discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How project center create the app delegate?


From: Omar Campos
Subject: How project center create the app delegate?
Date: Fri, 28 Oct 2011 14:51:01 -0400

Hi all,

 After a few months of first discovering GNUStep, I finally decided to read some tutorials on it, to really learn more about it. I am currently reading about the shared application object and its delegate. According to the tutorial, I create an object and implement some methods that control the app's behaviors, such as, 

- (void) applicationWillFinishLaunching: (NSNotification *)not

and then set this object as the application's delegate using [NSApp setDelegate]. So I created a new project in ProjectCenter, to see how this works in the default project template. It seems that the application delegate is an instance of a class called AppController, implemented in AppController.m. There is also a main source file which calls NSApplicationMain(). However, I can't seem to find any place in the code where this class is instantiated and set as the application delegate. So, where does ProjectCenter set this up? How does the program know which class it needs to set as the app delegate? Thanks for any info.

Sincerely,
Omar Campos Rivera

reply via email to

[Prev in Thread] Current Thread [Next in Thread]