Tearing my hair out over this one and not sure what I'm doing wrong. I have an object called "Feed" as such:
This is what I get:
2011-01-26 00:19:40.628 ffeed[33447:207] (
(null)
)
I have another class I set up exactly the same way and that works fine and the code looks identical, so maybe I missed a step somewhere. But then again it is late!
Any ideas?
Code:
@interface Feed : NSObject {
NSString *feedId;
}
@property (nonatomic, copy) NSString *feedId;
@end
----------
@implementation Feed
@synthesize feedId;
----------
In a method in my viewcontroller :
NSMutableArray *feedArray = [[NSMutableArray alloc] init];
Feed *feed = [[[Feed alloc] init] autorelease];
feed.feedId = @"test";
[feedArray addObject:feed];
NSLog([feedArray description]);
This is what I get:
2011-01-26 00:19:40.628 ffeed[33447:207] (
(null)
)
I have another class I set up exactly the same way and that works fine and the code looks identical, so maybe I missed a step somewhere. But then again it is late!
Any ideas?