noobie mem management problem
noobie mem management problem
- Subject: noobie mem management problem
- From: James Cicenia <email@hidden>
- Date: Thu, 26 Feb 2009 06:50:09 -0600
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 (email@hidden)
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:
This email sent to email@hidden