On Thu, Sep 4, 2008 at 12:34 PM, Lucio Torre <[EMAIL PROTECTED]> wrote:
>> The other issue I've observed is that when one adds a named child to a
>> node and then remove it by reference, the name doesn't get removed.
>> This way, when I try to add another children with the same name I get
>> a "Name already exists". From my point of view, as names are unique,
>> when an named instance is removed by reference, the associated name
>> should be removed as well.
>
> we talked about this issue, and decided that if you add by name, you
> should remove by name. this is beucase we didnt want to be checking
> the name list on every remove (we would need an inverted index also).
>
> i think that this decision can be reversed. how strongly do you feel about
> this?
Vote +1 it should clean up when the node is removed :)
Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---