• 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
NSCreateMapTable - capacity argument clarification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCreateMapTable - capacity argument clarification?
      • From: leenoori <email@hidden>
  • Prev by Date: Responder chain vs find panel
  • Next by Date: Re: Re: Re: Synchronizing Thread Execution
  • Previous by thread: Re: Responder chain vs find panel
  • Next by thread: Re: NSCreateMapTable - capacity argument clarification?
  • Index(es):
    • Date
    • Thread