Re: -[NSMutableSet addObject:] Ambiguous Docs: -isEqual: vs. ==
- Subject: Re: -[NSMutableSet addObject:] Ambiguous Docs: -isEqual: vs. ==
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 15 Oct 2008 18:03:20 -0600
- Delivered-to: email@hidden
- Delivered-to: email@hidden
On Oct 15, 2008, at 5:45 PM, Jerry Krinock wrote:
I am assuming therefore assuming "-isEqual:" in writing my code.
Someone please let me know if they see any risk in that.
Yes, NSSet and its subclasses use -isEqual:. You should override that,
as well as -hash.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.