Greetings,
I have a view based application project where I have created an NSObject class called "SquareClass". Now, from the Xcode's interface builder, I want to be able to instantiate that "SquareClass" into a square object with global scope, in such a way that, when I create actions from any UI controls(i.e textboxes, buttons etc...), I want to be able to call methods of that object within those actions.
example:
(void)MyAction1:(id)color
{
[square setColor:color];
}
(void)MyAction2:(id)width
{
[square setWidth:width];
}
As you can see, the square object needs to have a global scope. This might seems easy or maybe the wrong way of doing it for some of us. I've look through the web, and kinda found a way for a .nib file, not for a .xib file.
Any suggestion would be greatly appreciated. Thanks a lot.
Yohann.
ps: This is my first post EVER, be indulgent.