Re: allKeys and allValues

2010-10-05 Thread gMail.com
tto: Re: allKeys and allValues On Oct 4, 2010, at 2:31 PM, Ken Thomases wrote: > On Oct 4, 2010, at 4:21 PM, gMail.com <http://gMail.com> wrote: >> On the docs I read that for both the NSDictionary's allKeys and allValues, >> the order of the elements in the array is not define

Re: allKeys and allValues

2010-10-04 Thread gMail.com
if([ID isEqualToString:@"inID"]) return item; } -- Leo > Da: Ken Thomases > Data: Mon, 4 Oct 2010 16:31:17 -0500 > A: "gMail.com" > Cc: > Oggetto: Re: allKeys and allValues > > On Oct 4, 2010, at 4:21 PM, gMail.com wrote: > >> On th

Re: allKeys and allValues

2010-10-04 Thread Dave DeLong
Or do something like: NSArray * allKeys = [dictionary allKeys]; NSArray * allValues = [dictionary objectsForKeys:allKeys notFoundMarker:[NSNull null]]; This also guarantees a 1-to-1 correspondance. Dave On Oct 4, 2010, at 3:40 PM, Greg Parker wrote: > The documentation for CFDictionaryGetKeys

Re: allKeys and allValues

2010-10-04 Thread Greg Parker
On Oct 4, 2010, at 2:31 PM, Ken Thomases wrote: > On Oct 4, 2010, at 4:21 PM, gMail.com wrote: >> On the docs I read that for both the NSDictionary's allKeys and allValues, >> the order of the elements in the array is not defined. Ok. >> But, are the two arrays aligned ea

Re: allKeys and allValues

2010-10-04 Thread Ken Thomases
On Oct 4, 2010, at 4:21 PM, gMail.com wrote: > On the docs I read that for both the NSDictionary's allKeys and allValues, > the order of the elements in the array is not defined. Ok. > But, are the two arrays aligned each other? If the docs don't contain that promise, then y

Re: allKeys and allValues

2010-10-04 Thread Nick Zitzmann
On Oct 4, 2010, at 3:21 PM, gMail.com wrote: > On the docs I read that for both the NSDictionary's allKeys and allValues, > the order of the elements in the array is not defined. Ok. > But, are the two arrays aligned each other? > > I mean, I have a dictionary containing s

allKeys and allValues

2010-10-04 Thread gMail.com
Hi, On the docs I read that for both the NSDictionary's allKeys and allValues, the order of the elements in the array is not defined. Ok. But, are the two arrays aligned each other? I mean, I have a dictionary containing several entries whose key is, e.g. @"0", @"3"