Hi,
I started learning Iphone development. As i'm reading about the cocoa development framework, few principal notions came around and with it a little bit of confusion. I want to make sure I understand things right and to get a little clarification :
Delegate - basically the strategy design pattern. I set my class delegate and data source (which is also a delegate-like object) , and later on call methods on those delegate objects.
Notification - basically the observer design pattern, where the delegate is automatically registed to all the delegating object notifications.
Target/action - This it where i'm mostly confused. There are the "SetAction"" and "SetTarget" methods for UI objects. As I understand, if I connect a method using IB (by streching a line betweeen the UI object to the file owner), the method is the action and the file owner is the target. Does it mean that all the UI methods' (events) have to be directed to the same targer ? (As I only have SetTarget method which doesn't accept a Selector or anything similar as another argument). The same question remains regarding actions. How can I stretch lines between many methods to one file owner if there is only one action (As the function SetAction imply) at a time. I'm looking to understand how this mechanism works.
Thanks