• 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
Null value from NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Null value from NSMutableArray


  • Subject: Null value from NSMutableArray
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 15 Feb 2010 10:53:54 +0100 (CET)

Is there a way to display/view data inside an Arraylist.
trying to use:

RandomObj *fooObj = [[RandomObj alloc]init];

NSEnumerator *enumerator = [fooArray objectEnumerator];
  id obj;
  while ( obj = [enumerator nextObject] ) {
  NSLog( @"%@", obj);
  NSLog( @"%d", fooObj.id);
  NSLog( @"%@", fooObj.name);
}

I get memory slots + values when im runing this from same method as the
imported data from a sqliteDB. But when im calling the same Object but from
example in Appdelegate (where i have the arraylist) i get the memory slot but
values in id and name become 0 and null.

- Martin
_______________________________________________

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: Null value from NSMutableArray
      • From: Jens Alfke <email@hidden>
    • Re: Null value from NSMutableArray
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: NSPanel and runModalForWindow: problems
  • Next by Date: Freelance Cocoa job- SF Bay Area
  • Previous by thread: problem with distributed objects
  • Next by thread: Re: Null value from NSMutableArray
  • Index(es):
    • Date
    • Thread