NSCreateMapTable - capacity argument clarification?
NSCreateMapTable - capacity argument clarification?
- Subject: NSCreateMapTable - capacity argument clarification?
- From: Jim Correia <email@hidden>
- Date: Mon, 4 Dec 2006 19:27:35 -0500
The documentation for NSCreateMapTable says:
Creates and returns a pointer to an NSMapTable in the default zone; the
table’s size is dependent on (but generally not equal to) capacity. If
capacity is 0, a small map table is created.
Does this simply establish the initial capacity (as it does with
NSMutableDictionary) and the map table will grow as needed? (Given
that 0 is a valid initial capacity, it would appear so, but...)
Or does the capacity define an upper bounds on the number of items
allowed in the table? (This is the convention CFMutableDictionary
uses for all non-zero initial capacities.)
Thanks,
Jim_______________________________________________
Cocoa-dev mailing list (email@hidden)
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