[Objective C] Simple question
I have implemented a singleton (sort of) in objective C with the following code:
I am attempting to implement a "setter" to set a UIView * inside of this singleton class...
+ (Object *) globalInstance
static Object * pObj = nil;
if ( !pObj )
pObj = [[self alloc] init];
I am having trouble with the syntax of calling this function.. I was hoping for some help.. I have tried many variations, and cant seem to get the syntax down.
- (void) setViewPointer:(UIView *)view
m_pView = view;
I have tried :
Any help would be great.