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

Re: NSMapTable options


  • Subject: Re: NSMapTable options
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 07 Mar 2011 14:39:04 -0600

On Mar 7, 2011, at 2:15 PM, Quincey Morris wrote:

> 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.

Well, I'm not deeply familiar with this stuff, but I can't see what it would mean to have weak references to keys while also copying the keys.

Cheers,
Ken

_______________________________________________

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: Quincey Morris <email@hidden>
References: 
 >NSMapTable options (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: easy way to store table-like data
  • Next by Date: Re: NSMapTable options
  • Previous by thread: NSMapTable options
  • Next by thread: Re: NSMapTable options
  • Index(es):
    • Date
    • Thread