• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
noobie mem management problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: noobie mem management problem
      • From: Peter N Lewis <email@hidden>
  • Prev by Date: Re: renaming a file with special/reserved characters in name
  • Next by Date: Re: NSComboBox Bindings
  • Previous by thread: Re: NSArrayController, only refreshes after mouse moves random key
  • Next by thread: Re: noobie mem management problem
  • Index(es):
    • Date
    • Thread