Re: Asymmetrical behavior in NSMutableArray
Re: Asymmetrical behavior in NSMutableArray
- Subject: Re: Asymmetrical behavior in NSMutableArray
- From: Guy English <email@hidden>
- Date: Thu, 10 Mar 2005 11:25:55 -0500
Serge Meynard <email@hidden> wrote:
> I find it odd that addObject and removeObject: would behave differently
> when it comes to duplicates. It's not a huge concern, since I worked
> around the problem (for now anyway) by making sure I remove things
> *before* adding them again, and not the other way around. But it's not
> what I'd call intuitive behavior.
See also NSSet, NSCountedSet and their mutable counterparts - they may
be more what you're looking for.
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden