Re: CFMutableDictionary Capacity

2011-08-10 Thread Wade Tregaskis
According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs which can be inserted into the container. That is, it's not an *initial* capacity. I think that was a mistake in the docs. The comment in CFDictionary.h in the

CFMutableDictionary Capacity

2011-07-20 Thread Andreas Grosam
Is it possible to set the initial capacity (preparing for an initial number of key-value pairs) of a CFMutableDictionary? According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs which can be inserted into the container.

Re: CFMutableDictionary Capacity

2011-07-20 Thread Jens Alfke
On Jul 20, 2011, at 2:34 PM, Andreas Grosam wrote: According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs which can be inserted into the container. That is, it's not an *initial* capacity. I think that was a mistake

Re: CFMutableDictionary Capacity

2011-07-20 Thread Jean-Daniel Dupas
Le 21 juil. 2011 à 00:30, Jens Alfke a écrit : On Jul 20, 2011, at 2:34 PM, Andreas Grosam wrote: According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs which can be inserted into the container. That is, it's not

Re: CFMutableDictionary Capacity

2011-07-20 Thread Jean-Daniel Dupas
Le 21 juil. 2011 à 01:48, Jean-Daniel Dupas a écrit : Le 21 juil. 2011 à 00:30, Jens Alfke a écrit : On Jul 20, 2011, at 2:34 PM, Andreas Grosam wrote: According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs

Re: CFMutableDictionary Capacity

2011-07-20 Thread Andreas Grosam
On Jul 21, 2011, at 12:30 AM, Jens Alfke wrote: On Jul 20, 2011, at 2:34 PM, Andreas Grosam wrote: According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs which can be inserted into the container. That is, it's not