how to tell which object called a delegate method (objective c)

Posted by user353877 on Stack Overflow See other posts from Stack Overflow or by user353877
Published on 2010-06-06T09:50:08Z Indexed on 2010/06/06 9:52 UTC
Read the original article Hit count: 283

Let's say you have two objects (UITextviews) in your class. When the text view changes, you have a delegate method that catches the change.. but how can you tell programatically WHICH object was changed and called the delegate ??

I have to be missing something, because this should be trivial, but I couldnt find anything. Note: In this case, its not possible to just break up the class to only have one object (there by bypassing ambiguity).. I looked for things like assigned variable names for nsobjects, nothing there

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about delegates