Mailing Lists: Apple Mailing Lists

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

COCOAisms vs DOMisms vs CoreFoundationISMs



I'm not sure if this is covered anywhere in the documentation, but are the following assumptions correct?

1. When a DOM method returns a newly created object, that object will be an autoreleasing object.

e.g

- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned long)whatToShow :(id <DOMNodeFilter>)filter :(BOOL) expandEntityReferences;



2. Where the DOM object has a detach method (DOMNodeIterator and DOMRange), that method does not need to be called (assuming that the autoreleasing assumption is correct), but it can be.

3. All of the DOM classes inherit from DOMObject and that says it conforms to NSCopying. I am guessing however that calling [someDOMObject copy] is not going to produce a standalone copy of many object types. As such, unless there is a 'cloneXXX' method declared for the class such a standalone copy cannot be produced.



Matt Gough
Softchaos Limited
_______________________________________________
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


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.