How do you create a subclass of StockHolding?


#1

When creating a new file in Stocks the combo box doesn’t give the option to subclass from StockHolding. How do I subclass a class that I defined?

My assumption is that I create it as a subclass of NSObject and modify to this:

[code]#import <Foundation/Foundation.h>
#import “StockHolding.h”

@interface ForeignStockHolding : StockHolding

@end[/code]


#2

Yup, changing NSObject to StockHolding will work!