I have a class defined as :
@interface invItem : NSObject
{
NSString* rowID;
NSString* expDate;
NSString* location;
}
@property(nonatomic, retain)NSString *rowID;
@property(nonatomic, retain)NSString *expDate;
@property(nonatomic, retain)NSString *location;
@end
I am reading the 3 strings from XML (using XMLParser) returned from a Web Service and then adding them to my invItem object
For Example:
currentItem.rowID = currentNodeContent; etc..
At the end of each row I read, I need to add the 'currentItem' with all 3 strings, to my array, I am using:
[myArray addObject:currentItem];
but when I inspect the array in the debugger it returns nil, as you can see below, what am I missing??
(lldb) po currentItem.rowID
1889
(lldb) po [[myArray objectAtIndex:0] rowID]
nil