Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Raima

macrumors 6502
Original poster
Jan 21, 2010
400
11
Hi Guys,

Just a question about the delegate, or deleagates.

Is it possible to have more than one delegate, or are you restricted to one?

Thanks in advance :)
 
No, you cannot set more than one delegate on any class I've ever seen. If you want to do this you will have to provide your own class that you set as the delegate which then mediates between all the delegates you wish to set. You will have to thing very carefully about this: if two delegates both implement the same delegate method which do you call?
 
So does this mean if you have 4 classes, you can potentially have 4 delegates?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.