I have some objects named object1, object2, object3, and I'd like to send the same message to them with a for loop, instead of :
[object1 message];
[object2 message];
[object13 message];
...
[object200 message];
Thanks.
Edit : Sorry guys, my question wasn't precise (and maybe my english too...)
I have some objects (more precisely custom buttons) in my interface and the same number of custom views. When i touch a button, it send the same message to the related view.
In the view controller header file, i declared n outlets for my views, and n actions for my buttons.
So my question is : instead of declaring all theses outlets and actions (a lot of copying/pasting and editing...), how can I code just one action, and send the message to the good object.
Thanks for your answers!