XCode - Global Function self.view
So i followed [this tutorial][1] on how to create a global function..
All is working except in my global function i have a line that is:

    [self.view addSubview:gld];

and i am getting an error on self.view.. any ideas?
I need the self.view part to be the view that called the function..

The Error:

> Property 'view' not found on object of type 'GlobalData*'


  [1]: http://sree.cc/iphone/global-functions-and-variables-in-objective-c
XCode - Global Function self.view
===

So i followed [this tutorial][1] on how to create a global function..
All is working except in my global function i have a line that is:

    [self.view addSubview:gld];

and i am getting an error on self.view.. any ideas?
I need the self.view part to be the view that called the function..

The Error:

> Property 'view' not found on object of type 'GlobalData*'


  [1]: http://sree.cc/iphone/global-functions-and-variables-in-objective-c