• 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
Re: objects aren't added to NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objects aren't added to NSMutableArray


  • Subject: Re: objects aren't added to NSMutableArray
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 17 Jun 2008 17:16:48 -0700


On 17 Jun '08, at 5:02 PM, Daniel Richman wrote:

I get no error, but the object isn't added. If I try to do
[myArray objectAtIndex:0];
I get (null)

That's a tip-off that the array pointer is nil, by the way — - objectAtIndex: *never* returns nil, because it's not legal to store nil values in an NSArray. (Same goes for objectForKey: in NSDictionary.)


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: objects aren't added to NSMutableArray
      • From: "Adam R. Maxwell" <email@hidden>
References: 
 >objects aren't added to NSMutableArray (From: Daniel Richman <email@hidden>)

  • Prev by Date: Re: objects aren't added to NSMutableArray
  • Next by Date: Grand Central Details
  • Previous by thread: Re: objects aren't added to NSMutableArray
  • Next by thread: Re: objects aren't added to NSMutableArray
  • Index(es):
    • Date
    • Thread