I created this Class to store Rss feeds about Cd-rooms:
CdObject.h
@interface CdObject : NSObject{
NSString *title,*artist,*country,*company,*price,*year;
}
@property(nonatomic,retain)NSString *title,*artist,*country,*company,*price,*year;
CdObject.m
#import "CdObject.h"
@implementation CdObject
@synthesize title,artist,country,company,price,year;
@end
Then while parsing the xml i’m creating new instances of this class filling their properties (title,artist ect..)and pushing them into a NSMutableArray (cdListArray)
How could I read the property of one of these objects from inside cdListArray?
Ex:NSLog(@"%@",[cdListArray objectAtIndex:0].title) ???
Try
NSLog(@"%@",((CdObject*)[cdListArray objectAtIndex:0]).title)