Hi all,
So I have a class (IBoxComponentEditView) that contains a specialized CPView defined in IBoxButton.j in the same directory. At the top of IBoxComponentEditView I have:
IBoxButton.j defines IBoxButton, vis:
@implementation IBoxButton : CPView
{
...
}
... and inside IBoxComponentEditView.j, there's a call to create an IBoxButton:
var btn = [[IBoxButton alloc] initWithFrame:f andContent:@"Delete"];
All well and good, it's the same sort of code I've used a thousand times, but this time in the console window, I'm seeing:
var btn = [[IBoxButton alloc] initWithFrame:f andContent:@"Delete"];
^
... which is difficult to believe, given the @import is right there at the top of the file. Even more confusing, if I ignore the warning, go ahead and click through the UI to exercise the code, the button is rendered correctly and appears in the correct place etc.
So, am I "lucking out" and there's a genuine error here, or is the compiler just confused and I can ignore it ? Anyone with the "wisdom of ages" want to chime in ?
Cheers
Simon