What would be equivalent objective c for this:
template<class T>
class Singleton
{
public:
static T * instance()
{
static T t;
return &t;
}
private:
Singleton();
~Singleton();
};
While calling:
friend class Singletone<MyManagerClass>;