Hello -
I am confused.
In .h :
NSMutableArray *currentStates;
@property (nonatomic, copy) NSMutableArray *currentStates;
Now in my appdelegate I have:
@synthesize currentStates;
then in a method:
while (sqlite3_step(statement) == SQLITE_ROW) {
char *str = (char *)sqlite3_column_text(statement, 0);
[self.currentStates addObject:(str) ? [NSString
stringWithUTF8String:str] : @""];
}
However currentStates never gets populated and always has zero objects.
What am I doing wrong. And, yes str has data.
Thanks
James Cicenia
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com