Re: Add same object/key to NSMapTable
Re: Add same object/key to NSMapTable
- Subject: Re: Add same object/key to NSMapTable
- From: Kyle Sluder <email@hidden>
- Date: Wed, 17 Jun 2009 18:44:44 -0700
On Wed, Jun 17, 2009 at 6:33 PM, Nathan Vander
Wilt<email@hidden> wrote:
> I could find no documentation to the effect that re-assigning an object is
> not allowed, so can I assume this is indeed unintentional? If so, I've got
> this test case in project form and would be happy to file a bug.
Please do file a bug.
In the meantime, the explicit case you present is always going to be
fraught with peril, because after you release o, you have relinquished
all rights to it. It's now a weak reference.
--Kyle Sluder
_______________________________________________
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