My Problem: I have 50 Buttons and I want to change all the titles of them in a loop. I named them like this: button1, button2, button3...
I wrote this code (i made it simpler here so that you can see my problem easier):
int i = 0;
while (i<=50) {
button[i].title = @"hello";
i++;
}
I don't know how to do this right. Its obvious that this cannot compile cause I have a string in front of .title and there has to be a NSButton type but I don't know how to do this right.
I would be really thankful for some help and I also would be thankful if someone can give me a tip where to find answers to ObjectiveC questions. I searched for 2 days to solve this problem but I didn't find anything about it on the web (maybe cause I didn't really know what I am searching for...).

New Topic/Question
Reply


MultiQuote





|