Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class defined without specifying a base class?

Simple inheritance that I've done a million times:

@class AGWindowView;

@interface HelperView : AGWindowView

I get this error:

Class "HelperView" defined without specifying a base class.

Well, obviously I am specifying a base class. What is going on here? Is there some way AGWindowView would not allow itself to be subclassed?

like image 604
soleil Avatar asked Aug 22 '13 19:08

soleil


1 Answers

You will need to import the file that defines AGWindowView at the top of the file. The compiler will need to know about the whole class, not just that it exists.

like image 80
www.jensolsson.se Avatar answered Oct 12 '22 07:10

www.jensolsson.se