jeudi 6 août 2015

use return value in other methods in objective c

I have a question. Is it possible to use a return value of a method in another method ? I would like to know in general how to to this.

At the moment I am writing a method which return a NSMutableArray, so the code looks like this:

-(NSMutableArray*) getDataFromDatabaseInArray {
 ...............
 ...............
 }

Is it possible to use the result value (NSMutableArray), to use it as a datasource for a NSTableView ?

Best regards, Robby

Aucun commentaire:

Enregistrer un commentaire