I think you are talking about “DataService.createItem”,
not “DataService.addItem”. Both approaches will create the item
(assuming the item you are adding is not already managed on that client). The
difference is that createItem adds a separate reference to that managed item
whereas adding an item to a filled collection. This difference shows up when
you start releasing references to managed items. If you call createItem, you
need to explicitly release the reference for that item using releaseItem. When
you just add the item to a filled array collection, when you release that
collection using releaseCollection it releases the reference for all of the
items in the collection. We do reference counting on the client so
only when you have released the last reference to a managed item is the item’s
managed state released. Jeff From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Hi all, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] DataService addItem vs. adding to a... Jeff Vroom
- [flexcoders] Re: DataService addItem vs. adding... thunderstumpgesatwork