Reputation: 4758
the book which I study, to transition from C++ to Objective-C, places all the Action Methods into Application Delegate class.
The sample code within the book works. However, I am thinking, what if I have 100, or in extreme cases 500, controls in my application. Will all the controlls' actions be processed in the same Application Delegate class? This look to me as very messy.
Could you, therefore, help me to answer my question, please:
If I have many controls (buttons, processing bars, fields ... ) in my application, is Application Delegate the only and correct place for processing all the action methods?
Upvotes: 1
Views: 56
Reputation: 150615
No.
Books use the Application delegate because it is a convenient place to put example code.
As you write your own programs, you'll have your own hierarchy of controllers to receive action messages.
Upvotes: 2