|
|
 | | From: | Jérôme_Laurens | | Subject: | Re: Newbie Q : How to call Instance method from class methode | | Date: | Thu, 4 Nov 2004 11:04:21 +0100 |
|
|
 | Sébastien wrote:
> Hello, i'm try to call with this : > > > @implementation maclasse > > +(id) methodeclassA{ > > > ret = [maclasse getinstance]; > > } > > -(int) getinstance{ > > > > > return OK; > > > } > > > > > @end > > > but, it don't work correctly what i'm need. > > it find about a class methode named +[maclasse getinstance] > > > > then so, how can do for it call -[maclasse getinstance] in +(id) > methodeclassA, but i'm return an instance variable shared by other methode > in the class. > > > thanks. > > sebastien
Make getinstance a class method.
|
|
|