Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: COCOAisms vs DOMisms vs CoreFoundationISMs



On Apr 19, 2006, at 2:20 AM, Matt Gough wrote:

What about things like hash and isEqual? Are these purely based on the pointer value,

They should be purely based on the pointer value.

or are they trying to be smart (i.e based on the contents of the object)? I ask this as I am currently storing some DOMNodes in an NSSet and my current code relies on the fact that each node in the DOM is considered to not be equal to any other. Is this a valid assumption (both now and into the future)?

Yes, for DOM nodes.

I could imagine someone arguing otherwise for some other types, like the CSS rectangle type, but not for nodes.

    -- Darin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: COCOAisms vs DOMisms vs CoreFoundationISMs (From: Alexey Proskuryakov <email@hidden>)
 >Re: COCOAisms vs DOMisms vs CoreFoundationISMs (From: Matt Gough <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.