• 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
NSMapTable options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMapTable options


  • Subject: NSMapTable options
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 07 Mar 2011 12:15:25 -0800

Could someone confirm for me that if I want a NSMapTable object with weak pointers to both keys and values, and that doesn't copy keys or values, the appropriate options are:

	[NSMapTable mapTableWithKeyOptions: (NSMapTableZeroingWeakMemory | NSMapTableObjectPointerPersonality) options
		valueOptions: (NSMapTableZeroingWeakMemory | NSMapTableObjectPointerPersonality)]

Or is [NSMapTable mapTableWithWeakToWeakObjects] sufficient? The documentation doesn't say whether this is modeled after a dictionary (copies keys) or not.


_______________________________________________

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: NSMapTable options
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: easy way to store table-like data
  • Next by Date: Re: easy way to store table-like data
  • Previous by thread: Re: easy way to store table-like data
  • Next by thread: Re: NSMapTable options
  • Index(es):
    • Date
    • Thread