Hellow stackoverflow people, I am pretty new to Cocoa. I have XCode 3.1
Situation: I have a NSObject subclass: (AppController) with an action, linked to a button. Than i have a custom View, connected to my NSView subclass (AppView), in the drawRect command i draw a rectangle (all that stuff works), i have in the AppView.m a function - (void) drawIt { .. } which draws the rectangle. For now i called it in the - (void) drawRect ... with [self drawIt]. That works too.
What i want to do now is to call drawIt when the button is clicked. (in the AppController.m when the Action -(IBAction) ... is called due to a button Click)
I hope u can help me, I am new to stackoverflow so i dont know wether i should past all the code here, i can but maybe its easier to read like this