Today it got a little confusing. Why? There are too many things to connect. I realize now that for an app to work, the controller must control the view. It is a two-way street. If the view is pushing the issue, then you create an action. If you want to do something to the view, then you create an outlet. What I did not understand was why an outlet would be created to work with a text box. After all, the input is happening in the text box. However, the text box is not doing anything. For something to be done, data has to be grabbed from the text box and I guess that is the job of an outlet. A button, on the other hand, would be a pure push and that would then entail an action. I am trying to think of other types of actions that can occur. I guess a click of a subform, a toggle, or a swipe of a slider would be considered an action. So, the text box is not an action because all the box is doing is accepting input. An outlet is formed to grab the data.
Today the book discussed many of the properties associated with the text box. It then started me off on the slider. It is a long chapter, probably one I will read again, at least in some sections. In some ways I wish it was like the Kochan book where there were exercises at the end. That really helped in the learning.
Another quick point. Although I am in no way an Objective-C expert, I am able to understand what is going on syntactically. I can only imagine how hard this book would be without any Objective-C background.
No comments:
Post a Comment