What is a responder chain?



What is a responder chain?..

Answer / Avnesh Kumar Gupta

A responder chain in Objective-C is a sequence of objects that are searched for a method implementation. When a message is sent to an object, the runtime begins searching for the method in the receiver. If it's not found, it looks in the receiver's superclass, then the superclass's superclass, and so on up the hierarchy until Objective-C finds the method or reaches NSObject. Responder chains are essential for event handling and delegate design pattern in Cocoa.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What do you mean by late binding?

1 Answers  


What is iomanip c++?

1 Answers  


What is object in c++ wikipedia?

1 Answers  


What are raw sockets, where they are efficient?

2 Answers   Symphony,


What is Memory Alignment?

2 Answers   TCS,


Differentiate between late binding and early binding.

1 Answers  


What will happen if when say delete this ?

7 Answers  


What are the various compound assignment operators in c++?

1 Answers  


Write about the use of the virtual destructor?

1 Answers  


What is object file? How can you access object file?

1 Answers  


Is java based off c++?

1 Answers  


What is size of Empty Class?

3 Answers   Persistent,


Categories